fix: return proper AST from renamer

This commit is contained in:
2025-03-13 20:47:56 +00:00
parent c73b073f23
commit ee54a1201c

View File

@@ -233,7 +233,7 @@ object renamer {
val bodyErrors = subscope.withSubscope { s => body.foldMap(rename(s)) } val bodyErrors = subscope.withSubscope { s => body.foldMap(rename(s)) }
paramErrors ++ bodyErrors paramErrors ++ bodyErrors
} }
} yield (partialProg.self, errors) } yield (Program(chunks.toList, main.body)(main.pos), errors)
} }
// /** Check scoping of all variables and functions in the program. Also generate semantic types for // /** Check scoping of all variables and functions in the program. Also generate semantic types for