e0/examples/struct.e0

14 lines
146 B
Text
Raw Normal View History

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