Repository navigation
Commit da89a3b
Add tests for a trailing Never call and an annotation-only class-body definition
Summary:
- What: Add `cut_off_by_trailing_call` to `test_unset_path_from_earlier_if_needs_every_branch_on_it`, and add an annotation-only definition to `test_class_body_initialization_is_independent_of_methods`.
- Why: Cover two cases that the existing tests miss: a path that misses an assignment and then stops at its own trailing `NoReturn` call, and a conditional annotation-only class-body definition that a method also assigns. The earlier `bug` version of the first test is gone: master already handles the case correctly (fixed by "Propagate conditional termination through nested flow merges"), and the other cases of this diff duplicated `cut_off_earlier` and `not_cut_off`.
Reviewed By: connernilsen
Differential Revision: D129184208
fbshipit-source-id: b2f1e202ce72a19120844ff6f142a3783940969d1 parent 457e761 commit da89a3b
2 files changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4811 | 4811 | | |
4812 | 4812 | | |
4813 | 4813 | | |
| 4814 | + | |
| 4815 | + | |
| 4816 | + | |
| 4817 | + | |
| 4818 | + | |
| 4819 | + | |
| 4820 | + | |
| 4821 | + | |
| 4822 | + | |
| 4823 | + | |
| 4824 | + | |
4814 | 4825 | | |
4815 | 4826 | | |
4816 | 4827 | | |
| |||
0 commit comments