Commit 26814f2
committed
Avoid treating pass/... as no-op for reachability
Fixes #16232
The inclusion of these statements dates back to the original
`--warn-unreachable` PR (and doesn't provide justification)
I've been advocating for more consistent heuristics for allowable
unreachable code across type checkers and I can't come up with a good
reason that this should be allowed1 parent 0a6f9ab commit 26814f2
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3181 | 3181 | | |
3182 | 3182 | | |
3183 | 3183 | | |
3184 | | - | |
| 3184 | + | |
3185 | 3185 | | |
3186 | 3186 | | |
3187 | | - | |
3188 | | - | |
3189 | | - | |
| 3187 | + | |
3190 | 3188 | | |
3191 | 3189 | | |
3192 | 3190 | | |
| |||
0 commit comments