aboutsummaryrefslogtreecommitdiff
path: root/test/interface
diff options
context:
space:
mode:
Diffstat (limited to 'test/interface')
-rw-r--r--test/interface/pointer.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/interface/pointer.go b/test/interface/pointer.go
index c21e4da390..a71b3f4bf8 100644
--- a/test/interface/pointer.go
+++ b/test/interface/pointer.go
@@ -24,7 +24,6 @@ type Start struct {
func (start *Start) Next() *Inst { return nil }
-
func AddInst(Inst) *Inst {
print("ok in addinst\n")
return nil
@@ -33,8 +32,6 @@ func AddInst(Inst) *Inst {
func main() {
print("call addinst\n")
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
+ var y *Inst = new(Start) // ERROR "pointer to interface|incompatible type"
}