aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-08-26 10:03:30 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-08-26 10:03:30 -0400
commitede0c22a6796600cfc4555e9ac2f0481c41c290a (patch)
tree6d565af62f39457688c3fa059e7a67d6b73c6cac /src/codegen.cpp
parentb13af0750fbe8b38a95b05ec78c8364281fcf477 (diff)
downloadzig-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