]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile/internal/syntax: accept "~" and "|" interface elements
authorRobert Griesemer <gri@golang.org>
Tue, 6 Apr 2021 02:10:22 +0000 (19:10 -0700)
committerRobert Griesemer <gri@golang.org>
Sat, 10 Apr 2021 19:02:03 +0000 (19:02 +0000)
commit4638545d85d7e10e49132ee94ff9a6778db1c893
tree2d62f3b4aa751124ca5c6fa2ed0a3516159d04a7
parent1129a60f1c1e64147ca1133857c4571ce9b87a35
cmd/compile/internal/syntax: accept "~" and "|" interface elements

Type lists continue to be accepted as before.

While at it, print missing filenames in error tests
(which uses an ad-hoc position representation).

Change-Id: I933b3acbc9cf1985ad8f70f6b206e3a1dbd64d1e
Reviewed-on: https://go-review.googlesource.com/c/go/+/307371
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/syntax/error_test.go
src/cmd/compile/internal/syntax/parser.go
src/cmd/compile/internal/syntax/printer_test.go
src/cmd/compile/internal/syntax/testdata/interface.go2 [new file with mode: 0644]