diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-08-26 10:03:30 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-08-26 10:03:30 -0400 |
| commit | ede0c22a6796600cfc4555e9ac2f0481c41c290a (patch) | |
| tree | 6d565af62f39457688c3fa059e7a67d6b73c6cac /src/codegen.cpp | |
| parent | b13af0750fbe8b38a95b05ec78c8364281fcf477 (diff) | |
| download | zig-ede0c22a6796600cfc4555e9ac2f0481c41c290a.tar.gz zig-ede0c22a6796600cfc4555e9ac2f0481c41c290a.zip | |
make `@alignOf` lazily evaluate the target type
this case works now:
```zig
const Foo = struct {
field: Bar(@alignOf(*Foo)),
};
fn Bar(comptime alignment: u29) type {
return struct {
field: *align(alignment) Foo,
};
}
```
Diffstat (limited to 'src/codegen.cpp')
0 files changed, 0 insertions, 0 deletions
