From ee54a1201c68b892fc494518531da96c4ce3d652 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Thu, 13 Mar 2025 20:47:56 +0000 Subject: [PATCH] fix: return proper AST from renamer --- src/main/wacc/frontend/renamer.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/wacc/frontend/renamer.scala b/src/main/wacc/frontend/renamer.scala index 748ed81..3d5c917 100644 --- a/src/main/wacc/frontend/renamer.scala +++ b/src/main/wacc/frontend/renamer.scala @@ -233,7 +233,7 @@ object renamer { val bodyErrors = subscope.withSubscope { s => body.foldMap(rename(s)) } 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