From 08ca30bbfad04d3ca1bf7ae75c291b91ecb00aef Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 19 Dec 2008 03:05:37 -0800 Subject: change *map to map; *chan to chan; new(T) to new(*T) fix bugs left over from *[] to [] conversion. TBR=r OCL=21576 CL=21581 --- test/interface1.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/interface1.go') 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"); } -- cgit v1.3