]> Cypherpunks repositories - gostls13.git/commitdiff
go/types: remove TODO in testdata/examples/types.go
authorRobert Griesemer <gri@golang.org>
Thu, 18 Aug 2022 03:38:39 +0000 (20:38 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 19 Aug 2022 17:46:02 +0000 (17:46 +0000)
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 <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>

src/go/types/testdata/examples/types.go

index 97e84993d548c1bb4ed957ebf8f5f325843b46f7..052d168fc6fcc961bea24caa33f29ac4d158433c 100644 (file)
@@ -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 */