This commit is contained in:
Alex Waygood 2025-11-23 19:17:29 +00:00 committed by Aria Desires
parent ac532e81e7
commit b60910c82b
1 changed files with 11 additions and 1 deletions

View File

@ -12323,7 +12323,17 @@ impl<'db> ModuleLiteralType<'db> {
let place_and_qualifiers = self
.module(db)
.file(db)
.map(|file| imported_symbol(db, file, name, None))
.map(|file| {
imported_symbol(db, file, name, None).map_type(|ty| {
if let Some(importing) = self.importing_file(db)
&& let Type::ModuleLiteral(module) = ty
{
Type::module_literal(db, importing, module.module(db))
} else {
ty
}
})
})
.unwrap_or_default();
if !place_and_qualifiers.is_undefined() {