Improved loop bodies

This commit is contained in:
2026-05-22 03:25:05 +02:00
parent a26c1c31fb
commit c5c5e885bf
6 changed files with 51 additions and 21 deletions
+11 -2
View File
@@ -92,7 +92,7 @@ pub class Application {
}
}
pub void loops_test() {
pub i32 loops_test() {
for (x : 0..10) {
println!("{x}");
}
@@ -110,5 +110,14 @@ pub class Application {
loop {
println!("loop!");
}
if (x == 0) bro();
else bro();
0
}
}
}
pub i32 bro() {
0
}