Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go2go: failure to compile dot import #40379
This is a bug in the translation tool. It's hard to fix, because go/types doesn't keep track of the package alias, so it's hard for the translation tool to see that the package alias is ".". When rewriting generic the tool needs to qualify lots of identifiers with the package name, and all those qualifications fail with a package alias of ".".
The translation tool is just an experimental tool that isn't expected to handle all possible Go code. I don't think this is an important case, and I don't plan to work on it. If someone wants to send a fix, that would be fine.