]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/internal/types/testdata/fixedbugs/issue47968.go
go/types, types2: introduce _Alias type node
[gostls13.git] / src / internal / types / testdata / fixedbugs / issue47968.go
index c516eee2da672f5b7841b281f3de1d7bb62a6b1e..83a1786133f297415b83320f4899b63072a972c8 100644 (file)
@@ -14,8 +14,8 @@ func (A1[P]) m2() {}
 
 type A2 = T[int]
 
-func (A2 /* ERROR "cannot define new methods on instantiated type T[int]" */) m3()   {}
-func (_ /* ERROR "cannot define new methods on instantiated type T[int]" */ A2) m4() {}
+func (A2 /* ERRORx `cannot define new methods on instantiated type (T\[int\]|A2)` */) m3()   {}
+func (_ /* ERRORx `cannot define new methods on instantiated type (T\[int\]|A2)` */ A2) m4() {}
 
 func (T[int]) m5()                                     {} // int is the type parameter name, not an instantiation
 func (T[* /* ERROR "must be an identifier" */ int]) m6() {} // syntax error