From 7a1aa7dfaf9a7208a6cae7518037d885c9fabdbd Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Tue, 1 Dec 2020 17:37:12 -0800 Subject: [dev.typeparams] test: adjust more test cases to match compiler -G output With this CL, the first ~500 errorcheck tests pass when running go run run.go -v -G in the $GOROOT/test directory (the log output includes a few dozen tests that are currently skipped). Change-Id: I9eaa2319fb39a090df54f8699ddc29ffe58b1bf1 Reviewed-on: https://go-review.googlesource.com/c/go/+/274975 Trust: Robert Griesemer Run-TryBot: Robert Griesemer TryBot-Result: Go Bot Reviewed-by: Robert Findley --- test/interface/pointer.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/interface/pointer.go') diff --git a/test/interface/pointer.go b/test/interface/pointer.go index 2927050669..c21e4da390 100644 --- a/test/interface/pointer.go +++ b/test/interface/pointer.go @@ -32,7 +32,9 @@ func AddInst(Inst) *Inst { func main() { print("call addinst\n") - var x Inst = AddInst(new(Start)) // ERROR "pointer to interface" + var x Inst = AddInst(new(Start)) // ERROR "pointer to interface|incompatible type" + _ = x print("return from addinst\n") var y *Inst = new(Start) // ERROR "pointer to interface|incompatible type" + _ = y } -- cgit v1.3-5-g9baa