Skip to content

Commit

Permalink
feat(type): add symbol table info to get type
Browse files Browse the repository at this point in the history
  • Loading branch information
Glyphack committed Mar 30, 2024
1 parent 8de0f9f commit 522f2e8
Show file tree
Hide file tree
Showing 5 changed files with 400 additions and 110 deletions.
2 changes: 1 addition & 1 deletion typechecker/src/type_check/checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl<'a> TypeChecker<'a> {
}

fn infer_expr_type(&mut self, expr: &Expression, emit_error: bool) -> PythonType {
match self.type_evaluator.get_type(expr, None) {
match self.type_evaluator.get_type(expr, None, None) {
Ok(t) => t,
Err(e) => {
if emit_error {
Expand Down
Loading

0 comments on commit 522f2e8

Please sign in to comment.