]> Cypherpunks repositories - gostls13.git/commitdiff
apply change suggested in CL 16658 review
authorRuss Cox <rsc@golang.org>
Thu, 30 Oct 2008 02:59:36 +0000 (19:59 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 30 Oct 2008 02:59:36 +0000 (19:59 -0700)
R=r
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=18091
CL=18094

test/interface1.go

index 3870d168c33e896abd13bc2602a254c0f328ab9c..089a8b5c1bd6be98efbfa2dda88b2ce47fa0fc8d 100644 (file)
@@ -30,6 +30,6 @@ func AddInst(Inst) *Inst {
 func main() {
        re := new(Regexp);
        print("call addinst\n");
-       var x Inst = AddInst(new(Start));
+       var x Inst = AddInst(new(Start));       // ERROR "illegal"
        print("return from  addinst\n");
 }