fix: nested module resolution bug

This commit is contained in:
Shunsuke Shibayama 2024-02-01 02:08:07 +09:00
parent 83aae24317
commit ded10fc3d9
7 changed files with 51 additions and 24 deletions

View file

@ -1236,7 +1236,7 @@ impl LimitedDisplay for Type {
}
Self::Poly { name, params } => {
write!(f, "{name}(")?;
if self.is_module() {
if !DEBUG_MODE && self.is_module() {
// Module("path/to/module.er") -> Module("module.er")
let name = params.first().unwrap().to_string_unabbreviated();
let name = name.replace("__init__.d.er", "").replace("__init__.er", "");