aboutsummaryrefslogtreecommitdiff
path: root/src/zig_clang.cpp
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2023-09-16 22:35:42 +0100
committermlugg <mlugg@mlugg.co.uk>2023-09-17 12:41:11 +0100
commit28caaea0938e938de96cc66a49f670005a2df9d4 (patch)
tree7e2975d48dd85296bc79d6918d6520c689ebc268 /src/zig_clang.cpp
parentf40f81cbfb0a867b32d4406e198550730de268cd (diff)
downloadzig-28caaea0938e938de96cc66a49f670005a2df9d4.tar.gz
zig-28caaea0938e938de96cc66a49f670005a2df9d4.zip
AstGen: allow closure over known-runtime values within @TypeOf
AstGen emits an error when a closure over a known-runtime value crosses a namespace boundary. This usually makes sense: however, this usage is actually valid if the capture is within a `@TypeOf` operand. Sema already has a special case to allow such closure within `@TypeOf` when AstGen could not determine a value to be runtime-known. This commit simply introduces analagous logic to AstGen to allow `var`s to cross namespace boundaries within `@TypeOf`.
Diffstat (limited to 'src/zig_clang.cpp')
0 files changed, 0 insertions, 0 deletions