cmd/compile/internal/syntax: more tolerant handling of missing function invocation in go/defer
Assume that an expression that is not a function call in a defer/go statement is indeed a function that is just missing its invocation. Report the error but continue with a sane syntax tree. Fixes #23586. Change-Id: Ib45ebac57c83b3e39ae4a1b137ffa291dec5b50d Reviewed-on: https://go-review.googlesource.com/94156Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Showing
test/fixedbugs/issue23586.go
0 → 100644
Please
register
or
sign in
to comment