From: Russ Cox Date: Tue, 14 Jul 2009 06:29:44 +0000 (-0700) Subject: bug148. X-Git-Tag: weekly.2009-11-06~1161 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e11447f7dace12797cbe6f6c5df60f65fc18e135;p=gostls13.git bug148. R=ken OCL=31582 CL=31582 --- diff --git a/src/cmd/gc/subr.c b/src/cmd/gc/subr.c index 06790c8568..1e7b7f408c 100644 --- a/src/cmd/gc/subr.c +++ b/src/cmd/gc/subr.c @@ -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); diff --git a/test/golden.out b/test/golden.out index 790e4311bf..a6845f40b8 100644 --- a/test/golden.out +++ b/test/golden.out @@ -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