]> Cypherpunks repositories - gostls13.git/commitdiff
bug148.
authorRuss Cox <rsc@golang.org>
Tue, 14 Jul 2009 06:29:44 +0000 (23:29 -0700)
committerRuss Cox <rsc@golang.org>
Tue, 14 Jul 2009 06:29:44 +0000 (23:29 -0700)
R=ken
OCL=31582
CL=31582

src/cmd/gc/subr.c
test/golden.out

index 06790c8568a6397b589154ef0d73de44fbf9c55c..1e7b7f408cf2bae16c63f5055449cfa0036446cc 100644 (file)
@@ -1067,7 +1067,7 @@ Tpretty(Fmt *fp, Type *t)
                                return 0;
                        if(s->imported)
                                return 0;
-                       if(s->def == N || s->def->op != OTYPE || s->def->type != t || !s->export) {
+                       if(t->vargen || !s->export) {
                                fmtprint(fp, "·%s", filename);
                                if(t->vargen)
                                        fmtprint(fp, "·%d", t->vargen);
index 790e4311bf4c7ca85287f3df3cd857dc17a0a9c6..a6845f40b85ef676f49e6bd2ebe724492c4c6e70 100644 (file)
@@ -93,8 +93,10 @@ BUG: should not compile
 
 =========== bugs/bug148.go
 2 3
-5 7
-BUG: should crash
+interface is main.T, not main.T·bug148·1
+throw: interface conversion
+
+panic PC=xxx
 
 =========== bugs/bug159.go
 xyz: expected 1 2 3 got 3 2 1