mirror of
https://github.com/golang/go
synced 2024-11-26 02:27:56 -07:00
cmd/gc: fix go:nointerface export comment
R=ken CC=golang-dev https://golang.org/cl/6815073
This commit is contained in:
parent
63f29d17d1
commit
c6f363b22a
@ -273,13 +273,13 @@ dumpexporttype(Type *t)
|
||||
Bprint(bout, "\ttype %#S %#lT\n", t->sym, t);
|
||||
for(i=0; i<n; i++) {
|
||||
f = m[i];
|
||||
if(f->nointerface)
|
||||
Bprint(bout, "\t//go:nointerface\n");
|
||||
if (f->type->nname && f->type->nname->inl) { // nname was set by caninl
|
||||
// when lazily typechecking inlined bodies, some re-exported ones may not have been typechecked yet.
|
||||
// currently that can leave unresolved ONONAMEs in import-dot-ed packages in the wrong package
|
||||
if(debug['l'] < 2)
|
||||
typecheckinl(f->type->nname);
|
||||
if(f->nointerface)
|
||||
Bprint(bout, "\t//go:nointerface\n");
|
||||
Bprint(bout, "\tfunc (%#T) %#hhS%#hT { %#H }\n", getthisx(f->type)->type, f->sym, f->type, f->type->nname->inl);
|
||||
reexportdeplist(f->type->nname->inl);
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user