]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/internal/types/testdata/check/decls4.go
go/types, types2: introduce _Alias type node
[gostls13.git] / src / internal / types / testdata / check / decls4.go
index c47a68d525ec858302315955ee0bc6f6a436231a..7c063904c8a0d9dec9868e1b4ab23b952790eab7 100644 (file)
@@ -59,7 +59,7 @@ var (
 )
 
 // alias receiver types
-func (Ai /* ERROR "cannot define new methods on non-local type int" */) m1() {}
+func (Ai /* ERRORx "cannot define new methods on non-local type (int|Ai)" */) m1() {}
 func (T0) m1() {}
 func (A0) m1 /* ERROR "already declared" */ () {}
 func (A0) m2 () {}
@@ -115,8 +115,8 @@ type (
        B2 = int
 )
 
-func (B0 /* ERROR "cannot define new methods on non-local type int" */ ) m() {}
-func (B1 /* ERROR "cannot define new methods on non-local type int" */ ) n() {}
+func (B0 /* ERRORx "cannot define new methods on non-local type (int|B)" */ ) m() {}
+func (B1 /* ERRORx "cannot define new methods on non-local type (int|B)" */ ) n() {}
 
 // cycles
 type (