mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-30 09:54:45 +00:00
Fix returns of tuple
This commit is contained in:
@@ -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