mirror of
https://github.com/erg-lang/erg.git
synced 2025-07-07 21:25:31 +00:00
5 lines
134 B
Python
5 lines
134 B
Python
UnpackPoint2D = Class {.x = Int; .y = Int}, Impl := Unpack
|
|
|
|
q = UnpackPoint2D::{.x = 1; .y = 2}
|
|
UnpackPoint2D::{x; y} = q
|
|
print! x, y
|