diff options
Diffstat (limited to 'test/interface1.go')
| -rw-r--r-- | test/interface1.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/interface1.go b/test/interface1.go index 649a955f6d..a053ed3e91 100644 --- a/test/interface1.go +++ b/test/interface1.go @@ -28,8 +28,8 @@ func AddInst(Inst) *Inst { } func main() { - re := new(Regexp); + re := new(*Regexp); print("call addinst\n"); - var x Inst = AddInst(new(Start)); // ERROR "illegal|incompatible" + var x Inst = AddInst(new(*Start)); // ERROR "illegal|incompatible" print("return from addinst\n"); } |
