From: Robert Griesemer Date: Thu, 18 Aug 2022 03:38:39 +0000 (-0700) Subject: go/types: remove TODO in testdata/examples/types.go X-Git-Tag: go1.20rc1~1511 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5a53807950e8bde126180590a2f922d1046acc7e;p=gostls13.git go/types: remove TODO in testdata/examples/types.go Follow-up on CL 424674. With this change, the files in testdata/examples are identical to the corresponding files for types2. For #54511. Change-Id: Ic61c089bbf61492094e31057ad2635803f50a30d Reviewed-on: https://go-review.googlesource.com/c/go/+/424714 Reviewed-by: Robert Findley Reviewed-by: Robert Griesemer Run-TryBot: Robert Griesemer TryBot-Result: Gopher Robot --- diff --git a/src/go/types/testdata/examples/types.go b/src/go/types/testdata/examples/types.go index 97e84993d5..052d168fc6 100644 --- a/src/go/types/testdata/examples/types.go +++ b/src/go/types/testdata/examples/types.go @@ -146,11 +146,9 @@ func _() { } type _ struct { - // TODO(gri) The next 3 lines need to be adjusted to match - // the corresponding types2 tests. This requires - // a go/parser fix (issue #51655). - int8 - *int16 + ( /* ERROR cannot parenthesize */ int8) + ( /* ERROR cannot parenthesize */ *int16) + *( /* ERROR cannot parenthesize */ int32) List[int] int8 /* ERROR int8 redeclared */