If statement expression

This commit is contained in:
2026-04-22 14:38:37 +02:00
parent 22cb5aade3
commit bd262f98f8
2 changed files with 69 additions and 21 deletions
+15
View File
@@ -3,5 +3,20 @@ package main;
import "fmt";
function main() {
doSomething();
let a = doSomethingElse();
if (a + 1 == 67 + 1) {
fmt.println(a);
}
}
function doSomething() {
fmt.println("hello");
}
function doSomethingElse(): int {
fmt.println("world");
return 67;
}