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
## Summary
`void` branches preceeding with no-return terminal branches are checked
with no-return analysis to avoid false positives.
## Details
The analysis is updated to recursively check `if/elif/of/except`
non-terminal branches as well as the terminal branch.
Fixes#1453
Example
Actual Output
Complies successfully
Expected Output
Should not compile at all
Possible Solution
This should be changed to verify that either it has a type (a real expression), or all branches must ends with noreturn.
nimskull/compiler/ast/ast_query.nim
Lines 703 to 704 in 677964c
The text was updated successfully, but these errors were encountered: