mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-06 04:57:55 +00:00
Any order declarations at procedure scope (except variables)
This commit is contained in:
@@ -4,17 +4,15 @@
|
||||
|
||||
|
||||
main :: proc() {
|
||||
x :: proc() -> (int, int) {
|
||||
return 1, 2
|
||||
}
|
||||
y :: proc() -> (int, int) {
|
||||
return x()
|
||||
}
|
||||
x :: proc() -> (int, int) {
|
||||
return 1, 2
|
||||
}
|
||||
|
||||
fmt.println(y())
|
||||
|
||||
|
||||
|
||||
arena: mem.Arena
|
||||
mem.init_arena_from_context(^arena, 1000)
|
||||
defer mem.free_arena(^arena)
|
||||
|
||||
Reference in New Issue
Block a user