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
fromtypingimportNoReturndeffoo() ->NoReturn:
raiseExceptiondefbar() ->NoReturn:
foo()
foo()
print("hi") # no warning
The first call to foo is suppress the unreachable intentionally, (same with the second). But the print("hi) should definitely show an unreachable error.
The text was updated successfully, but these errors were encountered:
KotlinIsland
changed the title
warn-unreachable doesn't work when two NoReturn functions are called
(🐞) 'warn-unreachable' doesn't reactivate after it is suppressed with a <nothing> statement
Mar 21, 2022
The first call to
foo
is suppress theunreachable
intentionally, (same with the second). But theprint("hi)
should definitely show an unreachable error.The text was updated successfully, but these errors were encountered: