aboutsummaryrefslogtreecommitdiff
path: root/test/method2.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-12-02 18:13:14 -0800
committerIan Lance Taylor <iant@golang.org>2020-12-03 16:28:44 +0000
commit58768ae15b3f892b9b1902220ba3564375e5c6de (patch)
treec3c168a653944549a18e0a6d43cabe548bb85c8f /test/method2.go
parent932733d4212a7aa651f5060dff489f0819d928bb (diff)
downloadgo-58768ae15b3f892b9b1902220ba3564375e5c6de.tar.gz
go-58768ae15b3f892b9b1902220ba3564375e5c6de.zip
test: match gccgo error messages
assign.go:59:28: error: ‘x’ repeated on left side of := assign.go:65:20: error: ‘a’ repeated on left side of := method2.go:36:11: error: reference to method ‘val’ in type that is pointer to interface, not interface method2.go:37:11: error: reference to method ‘val’ in type that is pointer to interface, not interface Change-Id: I8f385c75a82fae4eacf4618df8f9f65932826494 Reviewed-on: https://go-review.googlesource.com/c/go/+/274447 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com>
Diffstat (limited to 'test/method2.go')
-rw-r--r--test/method2.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/method2.go b/test/method2.go
index 7feb675055..ac1d771c05 100644
--- a/test/method2.go
+++ b/test/method2.go
@@ -33,8 +33,8 @@ var _ = (*Val).val // ERROR "method"
var v Val
var pv = &v
-var _ = pv.val() // ERROR "undefined"
-var _ = pv.val // ERROR "undefined"
+var _ = pv.val() // ERROR "undefined|pointer to interface"
+var _ = pv.val // ERROR "undefined|pointer to interface"
func (t *T) g() int { return t.a }