Fix returns of tuple

This commit is contained in:
Ginger Bill
2016-09-23 20:40:42 +01:00
parent fa7d7938e1
commit db6abb9706
3 changed files with 62 additions and 18 deletions

View File

@@ -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)