mirror of
https://github.com/golang/go
synced 2024-11-22 05:54:40 -07:00
6g: better genembedtramp fatal error,
and don't put inaccessible private methods in signature. R=ken OCL=23138 CL=23140
This commit is contained in:
parent
a3c4faf83f
commit
35e37bbf41
@ -537,7 +537,7 @@ genembedtramp(Type *t, Sig *b)
|
|||||||
if(c == 1)
|
if(c == 1)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
fatal("genembedtramp");
|
fatal("genembedtramp %T.%s", t, b->name);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
if(d == 0)
|
if(d == 0)
|
||||||
|
@ -2489,6 +2489,8 @@ expand0(Type *t)
|
|||||||
u = methtype(t);
|
u = methtype(t);
|
||||||
if(u != T) {
|
if(u != T) {
|
||||||
for(f=u->method; f!=T; f=f->down) {
|
for(f=u->method; f!=T; f=f->down) {
|
||||||
|
if(!exportname(f->sym->name) && strcmp(f->sym->package, package) != 0)
|
||||||
|
continue;
|
||||||
if(f->sym->uniq)
|
if(f->sym->uniq)
|
||||||
continue;
|
continue;
|
||||||
f->sym->uniq = 1;
|
f->sym->uniq = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user