diff --git a/src/type_checkers/component.cr b/src/type_checkers/component.cr index 7afd401b0..d47026667 100644 --- a/src/type_checkers/component.cr +++ b/src/type_checkers/component.cr @@ -5,6 +5,7 @@ module Mint resolve node resolve node.gets + resolve node.constants resolve node.functions VOID diff --git a/src/type_checkers/module.cr b/src/type_checkers/module.cr index 854c2fc8a..9adbae01a 100644 --- a/src/type_checkers/module.cr +++ b/src/type_checkers/module.cr @@ -2,6 +2,7 @@ module Mint class TypeChecker def check_all(node : Ast::Module) : Checkable resolve node + resolve node.constants resolve node.functions VOID diff --git a/src/type_checkers/suite.cr b/src/type_checkers/suite.cr index db4ae017b..5a8438ff2 100644 --- a/src/type_checkers/suite.cr +++ b/src/type_checkers/suite.cr @@ -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