#8115 (comment)
Caused by #8115. We should create a stub only once for each qualified name. Also, if a name is imported multiple times with different types, we can try to make a stub with a common subtype that allows both imports to work (e.g. unreachable for functions since stubs can't be called anyway).