This commit is contained in:
nub31
2026-02-09 20:49:09 +01:00
parent 96670b1201
commit ab9bd6fd05
9 changed files with 300 additions and 176 deletions

View File

@@ -1,10 +1,5 @@
module main
struct person {
age: i32
name: string
}
func main(): i32 {
let x: i32 = 23
x = 24
@@ -25,11 +20,8 @@ func main(): i32 {
x = i
}
let me: main::person = struct main::person { age = 21 name = "Oliver" }
let me: test::person = struct test::person { age = 21 name = "Oliver" }
do_something(me.name)
test::do_something(me.name)
return x
}
func do_something(text: string): void {
}