aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorRobin Voetter <robin@voetter.nl>2021-12-27 01:22:57 +0100
committerRobin Voetter <robin@voetter.nl>2022-01-03 00:19:59 +0100
commit41e52bd5ccaccc0191c9f3434098d27ed07f62b7 (patch)
treefccb23581898f838afadab135beaf93219cae754 /src/Compilation.zig
parentc710d5eefe3f83226f1651947239730e77af43cb (diff)
downloadzig-41e52bd5ccaccc0191c9f3434098d27ed07f62b7.tar.gz
zig-41e52bd5ccaccc0191c9f3434098d27ed07f62b7.zip
stage2: don't call comptime functions with generic poison arguments
When calling a comptime or inline function, if the parameter is generic and is resolved to generic_poison or generic_poison_type, the invocation was part of another function's parameters or return type expression and is dependent on an as-of-yet type of another parameter. In this case, processing should stop, and we return error.GenericPoison to let the caller in funcCommon, zirParam or zirParamAnytype know that the function is generic.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions