X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Finternal%2Ftypes%2Ftestdata%2Fcheck%2Fdecls4.go;h=7c063904c8a0d9dec9868e1b4ab23b952790eab7;hb=bea55136b2d50fc514ddfba4380311295975a660;hp=c47a68d525ec858302315955ee0bc6f6a436231a;hpb=1b03ec8a25412342ca072c0860bdf046d58e82ac;p=gostls13.git diff --git a/src/internal/types/testdata/check/decls4.go b/src/internal/types/testdata/check/decls4.go index c47a68d525..7c063904c8 100644 --- a/src/internal/types/testdata/check/decls4.go +++ b/src/internal/types/testdata/check/decls4.go @@ -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 (