holey-bytes/hblang/examples/structs.hb

10 lines
109 B
Plaintext
Raw Normal View History

2024-05-12 05:16:40 -05:00
Ty := struct {
a: int
b: int
}
main := fn(): int {
inst := Ty.{ a: 1, b: 2 };
return inst.a + inst.b;
}