e0/examples/struct.e0
2022-06-17 09:50:06 -05:00

13 lines
146 B
Text

type IntPair = struct {
fst: int,
snd: int,
}
fn main() -> int {
let x = IntPair {
fst: 4,
snd: 6,
};
return x.fst + x.snd;
}