diff options
Diffstat (limited to 'test/interface/pointer.go')
| -rw-r--r-- | test/interface/pointer.go | 4 |
1 files changed, 3 insertions, 1 deletions
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 } |
