Open rwakulszowa opened 2 weeks ago
I haven't been able to actually find a proper fix yet. I can't find a reliable way to tell the merging function whether an import is a module (and can be used for merging) or a function.
I'm not sure if I manage to find a solution, so I'm sending a small PR with what I have.
Test for #18347. The issue affects all code using import merging. When a function and a module share the same identifier, e.g.
rust analyzer often confuses the function with the module, generating invalid code.