Fix returns of tuple
This commit is contained in:
1 parent
fa7d7938e1
commit
db6abb9706
3 files changed
+62
-18
No files matched your search
@@ -2,7 +2,18 @@
|
||||
#import "os.odin"
|
||||
#import "mem.odin"
|
||||
|
||||
|
||||
main :: proc() {
|
||||
x :: proc() -> (int, int) {
|
||||
return 1, 2
|
||||
}
|
||||
y :: proc() -> (int, int) {
|
||||
return x()
|
||||
}
|
||||
|
||||
fmt.println(y())
|
||||
|
||||
|
||||
|
||||
arena: mem.Arena
|
||||
mem.init_arena_from_context(^arena, 1000)
|
||||
|
||||
Reference in new issue
Block a user