Commit 5beb1d8
Add scope edge case tests
Summary:
Add 2 new tests for scope edge cases (both bugs, not yet detected):
- `test_del_in_dead_code_makes_local`: del in dead code branch should not affect variable locality
- `test_conditionally_defined_class_member`: conditionally defined class attribute
Reviewed By: yangdanny97
Differential Revision: D97777537
fbshipit-source-id: 9a374d8da24dbc5469319f2d403c13b8cccddc6a1 parent e567467 commit 5beb1d8
1 file changed
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1350 | 1350 | | |
1351 | 1351 | | |
1352 | 1352 | | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
0 commit comments