jorts/examples/extending-structs.jt

16 lines
118 B
Text
Raw Normal View History

struct A {
int a,
int b
}
struct B <- A {
int c
}
fn main () {
a := A{1, 2}
b := B{1, 2, 3}
}