You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test.zig:29:26: error: incompatible types: '*const ?usize' and '*const @TypeOf(null)'
while (reader.next() catch label: {
~~~~~~~~~~~~~~^~~~~
It passes for zig test test.zig -fstage1 and also for 0.8x and 0.9.x.
It also passes for stage2 when omitting the pointer to the payload. It seems that the type resolution looks at the loop payload type instead of the type used in the while condition.
The text was updated successfully, but these errors were encountered:
rened
added
the
bug
Observed behavior contradicts documented or intended behavior
label
Sep 29, 2022
Zig Version
0.10.0-dev.4197+9a2f17f9f
Steps to Reproduce
Put the following in
test.zig
and runzig test test.zig
:Expected Behavior
The test should pass.
Actual Behavior
It fails for
stage2
withIt passes for
zig test test.zig -fstage1
and also for 0.8x and 0.9.x.It also passes for
stage2
when omitting the pointer to the payload. It seems that the type resolution looks at the loop payload type instead of the type used in the while condition.The text was updated successfully, but these errors were encountered: