diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-09-22 21:02:24 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-09-22 21:06:00 -0700 |
| commit | 736d14fd5fa5feea83a6efce8b606b62bf165033 (patch) | |
| tree | da48c5f1743c7418ed51c5f9769236529a988be8 /test/behavior/this.zig | |
| parent | 0ec01e58b429e96d50411f74a0005076c24dda0c (diff) | |
| download | zig-736d14fd5fa5feea83a6efce8b606b62bf165033.tar.gz zig-736d14fd5fa5feea83a6efce8b606b62bf165033.zip | |
stage2: fix AstGen for some struct syntaxes
* AstGen: fix not emitting `struct_init_empty` when an explicit type is
present in struct initialization syntax.
* AstGen: these two syntaxes now lower to identical ZIR:
- `var a = A{ .b = c };`
- `var a = @as(A, .{ .b = c });`
* Zir: clarify `auto_enum_tag` in the doc comments.
* LLVM Backend: fix lowering of function return types when the type has
0 bits.
Diffstat (limited to 'test/behavior/this.zig')
0 files changed, 0 insertions, 0 deletions
