You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug requires that both interfaces in a and b be anonymous. Somehow they are being unified (by the linker?) and the test in package b is using the anonymous interface from package a, and failing because the unexported methods must match packages.
I suspect we qualify the unexported methods with only the package name, not the package path. The two anonymous interfaces here have the same linker name when using just the package names.
With a directory structure like:
go.mod
:a.go
:b.go
:c.go
:Then do
It fails with:
This bug requires that both interfaces in
a
andb
be anonymous. Somehow they are being unified (by the linker?) and the test in packageb
is using the anonymous interface from packagea
, and failing because the unexported methods must match packages.I suspect we qualify the unexported methods with only the package name, not the package path. The two anonymous interfaces here have the same linker name when using just the package names.
@matloob
The text was updated successfully, but these errors were encountered: