Sema: add error for failed assumption about struct having runtime bits

This commit is contained in:
Veikka Tuominen
2022-12-02 18:46:59 +02:00
parent 86e6acb37b
commit 59dad43de2
5 changed files with 67 additions and 7 deletions

View File

@@ -940,6 +940,7 @@ pub const Struct = struct {
requires_comptime: PropertyBoolean = .unknown,
have_field_inits: bool = false,
is_tuple: bool,
assumed_runtime_bits: bool = false,
pub const Fields = std.StringArrayHashMapUnmanaged(Field);
@@ -1205,6 +1206,7 @@ pub const Union = struct {
fully_resolved,
},
requires_comptime: PropertyBoolean = .unknown,
assumed_runtime_bits: bool = false,
pub const Field = struct {
/// undefined until `status` is `have_field_types` or `have_layout`.