1
0
Fork 0
forked from koniifer/ableos
ableos-framebuffer/hblang/examples/structs.hb

10 lines
111 B
Plaintext

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