mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
feat: support recursive class definition
This commit is contained in:
parent
418f31e6ed
commit
f3b188e095
13 changed files with 285 additions and 93 deletions
|
@ -256,7 +256,7 @@ impl ASTLowerer {
|
|||
None,
|
||||
);
|
||||
let mut module = hir::Module::with_capacity(ast.module.len());
|
||||
if let Err(errs) = self.module.context.preregister(ast.module.block()) {
|
||||
if let Err(errs) = self.module.context.register_const(ast.module.block()) {
|
||||
self.errs.extend(errs);
|
||||
}
|
||||
for chunk in ast.module.into_iter() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue