Skip to content

Commit

Permalink
Added missing type checks for constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdotdesign committed Sep 19, 2023
1 parent 5f1b7bb commit a084b2b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/type_checkers/component.cr
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module Mint
resolve node

resolve node.gets
resolve node.constants
resolve node.functions

VOID
Expand Down
1 change: 1 addition & 0 deletions src/type_checkers/module.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module Mint
class TypeChecker
def check_all(node : Ast::Module) : Checkable
resolve node
resolve node.constants
resolve node.functions

VOID
Expand Down
3 changes: 2 additions & 1 deletion src/type_checkers/suite.cr
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
module Mint
class TypeChecker
def check(node : Ast::Suite)
resolve node.name
resolve node.constants
resolve node.tests
resolve node.name

VOID
end
Expand Down

0 comments on commit a084b2b

Please sign in to comment.