WIP: fix REPL

This commit is contained in:
Shunsuke Shibayama 2022-09-22 15:46:09 +09:00
parent b56236a3b5
commit 8ce843a8df
3 changed files with 26 additions and 29 deletions

View file

@ -38,10 +38,7 @@ impl HIRBuilder {
let ast = Reorderer::new()
.reorder(ast)
.map_err(|errs| self.convert(errs))?;
let (hir, ctx) = self
.checker
.check(ast, mode)
.map_err(|errs| self.convert(errs))?;
let (hir, ctx) = self.checker.check(ast, mode)?;
self.mod_cache.register(var_name, Some(hir), ctx);
Ok(())
}