]> Cypherpunks repositories - gostls13.git/commitdiff
test: match gofrontend error messages
authorIan Lance Taylor <iant@golang.org>
Thu, 3 Dec 2020 20:02:00 +0000 (12:02 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 3 Dec 2020 20:30:02 +0000 (20:30 +0000)
fixedbugs/bug487.go:17:17: error: function result count mismatch
fixedbugs/bug487.go:18:16: error: function result count mismatch

fixedbugs/issue6977.go:37:26: error: duplicate method ‘m’
fixedbugs/issue6977.go:38:21: error: duplicate method ‘m’
fixedbugs/issue6977.go:39:26: error: duplicate method ‘m’
fixedbugs/issue6977.go:40:21: error: duplicate method ‘m’

Change-Id: Ie3c8a4650cd8f4c239bdceac25dc188a6a50ca34
Reviewed-on: https://go-review.googlesource.com/c/go/+/275178
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
test/fixedbugs/bug487.go
test/fixedbugs/issue6977.go

index ab61a19a9454857c2c348b925c42b4c82ecab889..e60af6c8e23b2dd6b0a11f85981f2e8585e766df 100644 (file)
@@ -14,8 +14,8 @@ func G() (int, int, int) {
 }
 
 func F() {
-       a, b := G()     // ERROR "assignment mismatch"
-       a, b = G()      // ERROR "assignment mismatch"
+       a, b := G()     // ERROR "mismatch"
+       a, b = G()      // ERROR "mismatch"
        _, _ = a, b
 }
 
index 0f657eec4198cf688a8b398cc6c505bcd154a68e..4525e406b84fd348d811f1e9570b68e498453f61 100644 (file)
@@ -34,7 +34,7 @@ type U3 interface { M; m() }
 type U4 interface { M; M; M }
 type U5 interface { U1; U2; U3; U4 }
 
-type U6 interface { m(); m() } // ERROR "duplicate method m"
-type U7 interface { M32; m() } // ERROR "duplicate method m"
-type U8 interface { m(); M32 } // ERROR "duplicate method m"
-type U9 interface { M32; M64 } // ERROR "duplicate method m"
+type U6 interface { m(); m() } // ERROR "duplicate method .*m"
+type U7 interface { M32; m() } // ERROR "duplicate method .*m"
+type U8 interface { m(); M32 } // ERROR "duplicate method .*m"
+type U9 interface { M32; M64 } // ERROR "duplicate method .*m"