Skip to content

Commit c48db9a

Browse files
committed
undo CL 66510044 / 6c0339d94123
Broke other things - see issue 7522. Fixes #7522. Reopens issue 7363. ««« original CL description cmd/gc: make embedded, unexported fields read-only. Fixes #7363. LGTM=gri R=gri, rsc, bradfitz CC=golang-codereviews https://golang.org/cl/66510044 »»» LGTM=r, mpvl R=golang-codereviews, r CC=golang-codereviews, iant, mpvl https://golang.org/cl/85580046
1 parent 7218509 commit c48db9a

File tree

2 files changed

+1
-28
lines changed

2 files changed

+1
-28
lines changed

src/cmd/gc/reflect.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -1138,8 +1138,7 @@ dtypesym(Type *t)
11381138
ot = dgopkgpath(s, ot, t1->sym->pkg);
11391139
} else {
11401140
ot = dgostringptr(s, ot, nil);
1141-
if(t1->type->sym != S &&
1142-
(t1->type->sym->pkg == builtinpkg || !exportname(t1->type->sym->name)))
1141+
if(t1->type->sym != S && t1->type->sym->pkg == builtinpkg)
11431142
ot = dgopkgpath(s, ot, localpkg);
11441143
else
11451144
ot = dgostringptr(s, ot, nil);

test/fixedbugs/issue7363.go

-26
This file was deleted.

0 commit comments

Comments
 (0)