35 lines
479 B
Plaintext
35 lines
479 B
Plaintext
module main
|
|
|
|
struct person {
|
|
age: i32
|
|
name: string
|
|
}
|
|
|
|
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: main::person = struct main::person { age = 21 name = "Oliver" }
|
|
|
|
do_something(me.name)
|
|
return x
|
|
}
|
|
|
|
func do_something(text: string): void {
|
|
} |