Commit e85f8378 authored by Robert Griesemer's avatar Robert Griesemer

Urgent parser/gofmt fix.

Wrong position information for identifier
could lead to destructive reformatting of
source via hg gofmt.

R=rsc
CC=golang-dev
https://golang.org/cl/189100
parent 11b459cb
......@@ -357,7 +357,7 @@ func (p *parser) findIdent() *ast.Ident {
if obj == nil {
obj = ast.NewObj(ast.Err, pos, name)
}
return &ast.Ident{obj.Pos, obj}
return &ast.Ident{pos, obj}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment