Skip to content

Commit 773289b

Browse files
committed
test
1 parent 26814f2 commit 773289b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test-data/unit/check-unreachable-code.test

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,17 @@ class C:
16371637
return C()
16381638
else:
16391639
return NotImplemented
1640+
[builtins fixtures/isinstance.pyi]
1641+
1642+
[case testPassAndEllipsisUnreachable]
1643+
# flags: --warn-unreachable
1644+
def f() -> None:
1645+
return
1646+
pass # E: Statement is unreachable
16401647

1648+
def g() -> None:
1649+
return
1650+
... # E: Statement is unreachable
16411651
[builtins fixtures/isinstance.pyi]
16421652

16431653
[case testUnreachableStatementPrettyHighlighting]

0 commit comments

Comments
 (0)