fix: separate variable and function in scope

This commit is contained in:
2025-02-05 05:12:32 +00:00
parent 06c8a069fb
commit 8c5b85b8c2
3 changed files with 31 additions and 21 deletions

View File

@@ -2,7 +2,7 @@ package wacc
enum Error {
case DuplicateDeclaration(ident: ast.Ident)
case UndefinedIdentifier(ident: ast.Ident)
case UndefinedIdentifier(ident: ast.Ident, identType: renamer.IdentType)
case FunctionParamsMismatch(expected: Int, got: Int)
case TypeMismatch(expected: types.SemType, got: types.SemType)
}