diagnostic

This commit is contained in:
2026-02-08 19:35:03 +01:00
parent e20f6cd7af
commit 6f03e2203f
3 changed files with 113 additions and 37 deletions

View File

@@ -0,0 +1,32 @@
struct person {
age: i32
name: string
}
func main(): i32 {
let x: i32 = 23
x = 24
if true {
x = 49
} else {
x = 3
}
let i: i32 = 0
x = 1 + 2 * 34
while i < 10 {
i = i + 1
x = i
}
let me: person = struct person { age = 21 name = "Oliver" }
do_something(me.name)
return x
}
func do_something(text: string): void {
}