diff options
Diffstat (limited to 'src/cmd/compile/internal/types2/testdata/typeinst.go2')
-rw-r--r-- | src/cmd/compile/internal/types2/testdata/typeinst.go2 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/compile/internal/types2/testdata/typeinst.go2 b/src/cmd/compile/internal/types2/testdata/typeinst.go2 index 6757cd57fd..0d628cb9d0 100644 --- a/src/cmd/compile/internal/types2/testdata/typeinst.go2 +++ b/src/cmd/compile/internal/types2/testdata/typeinst.go2 @@ -33,11 +33,11 @@ var _ A3 var x int type _ x /* ERROR not a type */ [int] -type _ int[] // ERROR expecting type -type _ myInt[] // ERROR expecting type +type _ int /* ERROR not a generic type */ [] // ERROR expecting type +type _ myInt /* ERROR not a generic type */ [] // ERROR expecting type // TODO(gri) better error messages -type _ T1 /* ERROR without instantiation */ [] // ERROR expecting type +type _ T1[] // ERROR expecting type type _ T1[x /* ERROR not a type */ ] type _ T1 /* ERROR got 2 arguments but 1 type parameters */ [int, float32] |