mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-27 19:59:07 +00:00
fix: nested module resolution bug
This commit is contained in:
parent
83aae24317
commit
ded10fc3d9
7 changed files with 51 additions and 24 deletions
|
@ -415,7 +415,9 @@ impl From<&Def> for ContextKind {
|
|||
DefKind::Class | DefKind::Inherit => Self::Class,
|
||||
DefKind::Trait | DefKind::Subsume => Self::Trait,
|
||||
DefKind::StructuralTrait => Self::StructuralTrait,
|
||||
DefKind::ErgImport | DefKind::PyImport | DefKind::RsImport => Self::Module,
|
||||
DefKind::ErgImport | DefKind::PyImport | DefKind::RsImport | DefKind::InlineModule => {
|
||||
Self::Module
|
||||
}
|
||||
DefKind::Other => {
|
||||
if def.is_subr() {
|
||||
if def.sig.ident().unwrap().is_procedural() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue