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