-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong type inference #19379
Comments
It behaves differently in comptime and in runtime. |
i understand the problem statement. i believe the fix here is to provide an intermediate type coercion in the line that errors e.g. |
I agree. The line came from this merge: #19229 |
Closes ziglang#19379 Closes ziglang#18046
Closes ziglang#19379 Closes ziglang#18046
Closes ziglang#19379 Closes ziglang#18046
Zig Version
0.12.0-dev.3381+7057bffc1
Steps to Reproduce and Observed Behavior
To reproduce run:
This is an actual library line:
zig/lib/std/fmt/ryu128.zig
Line 275 in e831313
It happens only in comptime
Expected Behavior
result type must be
u32
orusize
instead ofu2
The text was updated successfully, but these errors were encountered: