global variables
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
module main
|
||||
|
||||
let global: i32
|
||||
|
||||
func main(): i32 {
|
||||
let x: i32 = 23
|
||||
x = 24
|
||||
@@ -23,5 +25,8 @@ func main(): i32 {
|
||||
|
||||
x = test::do_something(me.name)
|
||||
test::do_something(me.name)
|
||||
return x
|
||||
|
||||
main::global = 123
|
||||
|
||||
return main::global
|
||||
}
|
||||
Reference in New Issue
Block a user