fix: fix merge breaks, add function names to scope before renaming bodies

This commit is contained in:
2025-02-05 20:41:49 +00:00
parent 6027bea95e
commit 0f18bca7fd
4 changed files with 35 additions and 34 deletions

View File

@@ -34,7 +34,7 @@ def compile(contents: String): Int = {
parser.parse(contents) match {
case Success(ast) =>
given errors: mutable.Builder[Error, List[Error]] = List.newBuilder
val names = renamer.rename(ast)
renamer.rename(ast)
// given ctx: types.TypeCheckerCtx[List[Error]] =
// types.TypeCheckerCtx(names, errors)
// types.check(ast)