So Chris found that if/else statements using blocks didn't work because they generated C like if(a) {b}; else {c}; -- so that's fixed now, with test :)

This commit is contained in:
Nathan Braswell
2015-03-16 05:59:56 -04:00
parent 15c4a4bf0e
commit 78d16c5510
3 changed files with 29 additions and 1 deletions

16
tests/test_else.krak Normal file
View File

@@ -0,0 +1,16 @@
import io:*;
|int| main() {
if (1>2) {
println("Wrong");
} else {
println("Right");
}
if (3>4)
println("Wrong");
else
println("Right");
}