-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Missing type inference in loop + case + if + continue #22604
Labels
Comments
The noreturn checks are not deep IIRC, they just check the last node in a branch, then check if it's a noreturn call or Lines 209 to 215 in b3912c2
|
This was referenced Aug 31, 2023
Araq
pushed a commit
that referenced
this issue
Sep 1, 2023
* Rewrite endsInNoReturn * Handle `try` stmt again and add tests * Fix unreachable code warning * Remove unreachable code in semexprs again * Check `it.len` before skip * Move import of assertions --------- Co-authored-by: SirOlaf <>
narimiran
pushed a commit
that referenced
this issue
Sep 15, 2023
* Rewrite endsInNoReturn * Handle `try` stmt again and add tests * Fix unreachable code warning * Remove unreachable code in semexprs again * Check `it.len` before skip * Move import of assertions --------- Co-authored-by: SirOlaf <> (cherry picked from commit 3b206ed)
narimiran
pushed a commit
that referenced
this issue
Sep 15, 2023
* Rewrite endsInNoReturn * Handle `try` stmt again and add tests * Fix unreachable code warning * Remove unreachable code in semexprs again * Check `it.len` before skip * Move import of assertions --------- Co-authored-by: SirOlaf <> (cherry picked from commit 3b206ed)
narimiran
pushed a commit
that referenced
this issue
Sep 18, 2023
* Rewrite endsInNoReturn * Handle `try` stmt again and add tests * Fix unreachable code warning * Remove unreachable code in semexprs again * Check `it.len` before skip * Move import of assertions --------- Co-authored-by: SirOlaf <> (cherry picked from commit 3b206ed)
narimiran
pushed a commit
that referenced
this issue
Sep 18, 2023
* Rewrite endsInNoReturn * Handle `try` stmt again and add tests * Fix unreachable code warning * Remove unreachable code in semexprs again * Check `it.len` before skip * Move import of assertions --------- Co-authored-by: SirOlaf <> (cherry picked from commit 3b206ed)
narimiran
pushed a commit
that referenced
this issue
Sep 18, 2023
* Rewrite endsInNoReturn * Handle `try` stmt again and add tests * Fix unreachable code warning * Remove unreachable code in semexprs again * Check `it.len` before skip * Move import of assertions --------- Co-authored-by: SirOlaf <> (cherry picked from commit 3b206ed)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
broken:
works:
Nim Version
1.6.14
Current Output
Expected Output
No response
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: