mirror of
https://github.com/odin-lang/Odin.git
synced 2026-05-20 02:50:57 +00:00
Allow undefined --- as a struct field default value.
This commit is contained in:
@@ -671,6 +671,8 @@ bool ir_type_has_default_values(Type *t) {
|
||||
continue;
|
||||
} else if (f->Variable.default_value.kind != ExactValue_Invalid) {
|
||||
return true;
|
||||
} else if (f->Variable.default_is_undef) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user