fix: check function calls have correct number of args

This commit is contained in:
2025-02-07 00:09:10 +00:00
parent e57c89beec
commit 277d2f66af
2 changed files with 5 additions and 2 deletions

View File

@@ -6,8 +6,8 @@ import wacc.types._
enum Error {
case DuplicateDeclaration(ident: ast.Ident)
case UndefinedIdentifier(ident: ast.Ident, identType: renamer.IdentType)
case FunctionParamsMismatch(expected: Int, got: Int) // TODO not fine
case FunctionParamsMismatch(pos: Position, expected: Int, got: Int)
case SemanticError(pos: Position, msg: String)
case TypeMismatch(pos: Position, expected: SemType, got: SemType, msg: String)
case InternalError(pos: Position, msg: String)