...
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
Reference in New Issue
Block a user