v/vlib/v/checker/tests/struct_required_field.vv

17 lines
142 B
V

struct Abc {
f1 int [required]
f2 int
f3 int [required]
}
fn main() {
_ = Abc{
f1: 123
f3: 789
}
_ = Abc{
f1: 123
f2: 789
}
}