Closed
Description
Should we allow subtyping of structs?
import dart:ffi show Struct, Int8;
A extends Struct {
@Int8()
int x;
}
B extends A {
@Int8()
int y;
}
Where B
has all the fields of A
.
/cc @sjindel-google
Should we allow subtyping of structs?
import dart:ffi show Struct, Int8;
A extends Struct {
@Int8()
int x;
}
B extends A {
@Int8()
int y;
}
Where B
has all the fields of A
.
/cc @sjindel-google