holey-bytes/hblang/examples/structs.hb
2024-05-12 12:16:40 +02:00

10 lines
109 B
Plaintext

Ty := struct {
a: int
b: int
}
main := fn(): int {
inst := Ty.{ a: 1, b: 2 };
return inst.a + inst.b;
}