Files
nub-lang/compiler/test.nub
2026-02-09 22:03:00 +01:00

26 lines
388 B
Plaintext

module main
func main(): i32 {
let x: i32 = 23
x = 24
if !true {
x = 49
return x
} else {
x = 3
}
let i: i32 = 0
x = 1 + 2 * 34
while i < 10 {
i = i + 1
x = i
}
let me: test::person = struct test::person { age = 21 name = "Oliver" }
test::do_something(me.name)
return x
}