Closed argusdusty closed 4 years ago
Closing per updated doc comments that indicate this is an unsupported case.
Change https://golang.org/cl/239711 mentions this issue: [dev.go2go] go/go2go: add package qualifier when needed
Actually, this case should work. It's the case where we refer to an unexported name that doesn't work.
I just committed a fix and this now works on the dev.go2go branch. Thanks for reporting it.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
reproduces with 2dce748
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
foo/lib/lib.go2:
foo/foo.go2:
C:\Users\argusdusty\Code\src\foo>go tool go2go build
What did you expect to see?
Successful compilation.
foo/foo.go:
What did you see instead?
.\foo.go2:9: undefined: NonGenericFunc
foo.go: