mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Add ClassDefType
This commit is contained in:
parent
cff0cae28a
commit
c6b8d6a6df
4 changed files with 31 additions and 8 deletions
|
@ -20,7 +20,7 @@ use erg_type::typaram::TyParam;
|
|||
use erg_type::value::{TypeObj, ValueObj};
|
||||
use erg_type::{HasType, ParamTy, Type};
|
||||
|
||||
use crate::context::{Context, ContextKind, RegistrationMode};
|
||||
use crate::context::{ClassDefType, Context, ContextKind, RegistrationMode};
|
||||
use crate::error::{
|
||||
CompileError, CompileErrors, LowerError, LowerErrors, LowerResult, LowerWarnings,
|
||||
};
|
||||
|
@ -760,7 +760,9 @@ impl ASTLowerer {
|
|||
}
|
||||
}
|
||||
}
|
||||
class_root.methods_list.push((class, methods));
|
||||
class_root
|
||||
.methods_list
|
||||
.push((ClassDefType::Simple(class), methods));
|
||||
} else {
|
||||
todo!()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue