]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/syntax: fix error message for ... without type
authorRobert Griesemer <gri@golang.org>
Wed, 14 Apr 2021 20:10:34 +0000 (13:10 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 15 Apr 2021 19:41:38 +0000 (19:41 +0000)
commita63ff398d541a1b3a3658e38693adebf370aadbb
tree681e79526f9a34b3e59b71c187b378991b869707
parentddd8d7c0a6859114f1f9bfbb3c56fb63f870badc
cmd/compile/internal/syntax: fix error message for ... without type

Only complain about missing type; leave it to type-checking
to decide whether "..." is permitted in the first place.

Fixes #43674.

Change-Id: Icbc8f084e364fe3ac16076406a134354219c08d0
Reviewed-on: https://go-review.googlesource.com/c/go/+/310209
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/parser.go
src/cmd/compile/internal/syntax/testdata/issue43674.src [new file with mode: 0644]
test/fixedbugs/bug228.go