feat: implement satisfies function in type checker

Co-Authored-By: jt2622
This commit is contained in:
2025-02-06 21:04:27 +00:00
parent 6548d895d5
commit f6e734937f
4 changed files with 96 additions and 62 deletions

View File

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