text/template/parse: fix data race
The situation only affects diagnostics but is easy to fix. When computing lineNumber, use the position of the last item returned by nextItem rather than the current state of the lexer. This is internal only and does not affect the API. Fixes #3886. R=golang-dev, iant CC=golang-dev https://golang.org/cl/6445061
Showing
Please register or sign in to comment