]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/syntax: correct an error string
authorRobert Griesemer <gri@golang.org>
Wed, 20 Apr 2022 19:05:30 +0000 (12:05 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 20 Apr 2022 20:49:36 +0000 (20:49 +0000)
commite49b80a754c3df1a82d089a16a46ea8946d5a00b
treebcea422762f57b800d16a1a65755c21807570320
parentc75befeec2a8ef2fea3c41da589ca0ffddda506f
cmd/compile/internal/syntax: correct an error string

When we have an error in a function type used in an expression
we don't know until we see an opening { whether we have a function
literal or a function type. Use "function type" as context because
that's always correct in the specific error message.

Change-Id: I9aad8fcddf31ae53daa53cebd2c2001f08eabde0
Reviewed-on: https://go-review.googlesource.com/c/go/+/401316
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/syntax/parser.go
src/cmd/compile/internal/syntax/testdata/issue48382.go