Fixed statement bodies

This commit is contained in:
2026-05-24 14:43:09 +02:00
parent 63cc20107c
commit f21cd5a927
6 changed files with 20 additions and 29 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ impl GenRust for Expression {
if ensure_semicolon {
ctx.expr_ensure_semicolon = true;
if !self.is_soft_return() {
if !self.is_block() {
cg.add(";");
}
}