mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-15 02:12:22 -07:00
16 lines
156 B
Odin
16 lines
156 B
Odin
x: i64 = 123
|
|
|
|
Vec2 :: struct {
|
|
x, y: i64
|
|
}
|
|
|
|
main :: proc() {
|
|
bar :: proc() -> i64 {
|
|
a := [3]i64{7, 4, 2}
|
|
v := Vec2{a[0], 2}
|
|
return v.x
|
|
}
|
|
|
|
bar()
|
|
}
|