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.