aboutsummaryrefslogtreecommitdiff
path: root/test/interface/explicit.go
diff options
context:
space:
mode:
authorcuiweixie <cuiweixie@gmail.com>2022-09-22 12:11:49 +0800
committerGopher Robot <gobot@golang.org>2022-09-24 17:04:15 +0000
commit336ce966e439a269fe5088cc7564181c5b866b61 (patch)
tree53e5c30d8ec43caa361961df4d5270cf1e3026e9 /test/interface/explicit.go
parente5deb1556b230642d544c451a83cb79f641727a3 (diff)
downloadgo-336ce966e439a269fe5088cc7564181c5b866b61.tar.xz
cmd/compile: use "missing method m" instead of "missing m method"
For #55326 Change-Id: I3d0ff7f820f7b2009d1b226abf701b2337fe8cbc Reviewed-on: https://go-review.googlesource.com/c/go/+/432635 TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Robert Griesemer <gri@google.com> Run-TryBot: Robert Griesemer <gri@google.com> Reviewed-by: Robert Findley <rfindley@google.com> Run-TryBot: xie cui <523516579@qq.com> Reviewed-by: Robert Griesemer <gri@google.com>
Diffstat (limited to 'test/interface/explicit.go')
-rw-r--r--test/interface/explicit.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/interface/explicit.go b/test/interface/explicit.go
index e18d6843ec..ccdae7873c 100644
--- a/test/interface/explicit.go
+++ b/test/interface/explicit.go
@@ -43,11 +43,11 @@ func main() {
// neither of these can work,
// because i has an extra method
// that t does not, so i cannot contain a t.
- i = t // ERROR "incompatible|missing M method"
+ i = t // ERROR "incompatible|missing method M"
t = i // ERROR "incompatible|assignment$"
i = i2 // ok
- i2 = i // ERROR "incompatible|missing N method"
+ i2 = i // ERROR "incompatible|missing method N"
i = I(i2) // ok
i2 = I2(i) // ERROR "invalid|missing N method|cannot convert"
@@ -81,7 +81,7 @@ var ii int
var jj Int
var m1 M = ii // ERROR "incompatible|missing"
-var m2 M = jj // ERROR "incompatible|wrong type for M method"
+var m2 M = jj // ERROR "incompatible|wrong type for method M"
var m3 = M(ii) // ERROR "invalid|missing|cannot convert"
var m4 = M(jj) // ERROR "invalid|wrong type for M method|cannot convert"