3 // Copyright 2009 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Check that interface{M()} = *interface{M()} produces a compiler error.
24 func (start *Start) Next() *Inst { return nil }
27 func AddInst(Inst) *Inst {
28 print("ok in addinst\n")
33 print("call addinst\n")
34 var x Inst = AddInst(new(Start)) // ERROR "pointer to interface"
35 print("return from addinst\n")