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
{{ message }}
Repository navigation
unreachable error not triggered when unreachable line calls function with NoReturn return type #10916
Activity
KotlinIsland commentedon Feb 8, 2022
raisestatements also count asNoReturn/<nothing>:KotlinIsland commentedon Feb 8, 2022
This looks to be the same issue as #11437
JelleZijlstra commentedon Mar 21, 2022
This is intentional, so that you can write a runtime assertion that fails if the types are wrong and the code is unexpectedly reached at runtime.