mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Tuple support in codegen
This commit is contained in:
@@ -2,7 +2,18 @@ import "basic"
|
||||
|
||||
TWO_HEARTS :: '💕';
|
||||
|
||||
tuple :: proc() -> (int, int) {
|
||||
return 1, 2;
|
||||
}
|
||||
|
||||
main :: proc() {
|
||||
a, b : int = tuple();
|
||||
|
||||
print_int(a, 10);
|
||||
print_string("\n");
|
||||
print_int(b, 10);
|
||||
print_string("\n");
|
||||
|
||||
/*
|
||||
print_string("Chinese - 你好世界\n");
|
||||
print_string("Dutch - Hello wereld\n");
|
||||
|
||||
Reference in New Issue
Block a user