mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
Sema: implement comptime struct fields
This commit is contained in:
1 parent
a91753219d
commit
6f560c9909
3 files changed
+20
-1
No files matched your search
@@ -884,6 +884,7 @@ pub const Struct = struct {
|
||||
default_val: Value,
|
||||
/// undefined until `status` is `have_layout`.
|
||||
offset: u32,
|
||||
/// If true then `default_val` is the comptime field value.
|
||||
is_comptime: bool,
|
||||
|
||||
/// Returns the field alignment, assuming the struct is not packed.
|
||||
|
||||
Reference in new issue
Block a user