]> Cypherpunks.ru repositories - gostls13.git/commit
go/parser: adjustments to error messages
authorRobert Griesemer <gri@golang.org>
Thu, 25 Aug 2022 23:41:35 +0000 (16:41 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 1 Sep 2022 22:37:04 +0000 (22:37 +0000)
commitaa5ff29dabbfdda036b8a1f5c5a80f239b876abc
tree80ae617f31caf18eff3cd21443487ef73c68cc8f
parentc801e4b10f708c180a3708bcf39881338691287c
go/parser: adjustments to error messages

- Use "expected X" rather then "expecting X".
- Report a better error when a type argument list is expected.
- Adjust various tests.

For #54511.

Change-Id: I0c5ca66ecbbdcae1a8f67377682aae6b0b6ab89a
Reviewed-on: https://go-review.googlesource.com/c/go/+/425734
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
15 files changed:
src/cmd/compile/internal/syntax/parser.go
src/cmd/compile/internal/syntax/testdata/issue47704.go
src/cmd/compile/internal/syntax/testdata/tparams.go
src/cmd/compile/internal/types2/testdata/check/typeinst0.go
src/cmd/compile/internal/types2/testdata/check/vardecl.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue45635.go
test/fixedbugs/issue13273.go
test/fixedbugs/issue18092.go
test/fixedbugs/issue18747.go
test/fixedbugs/issue19667.go
test/fixedbugs/issue23664.go
test/fixedbugs/issue33386.go
test/switch2.go
test/syntax/ddd.go
test/syntax/semi4.go