Commit 4ffa2e0
Handle scoping correctly for class fields in body (reland) (#1079)
Summary:
This is a reland of PR #1024 / D81681451 for addressing #264
The original change was reverted in
2747227 / D82227101 due to regression (#1073 and #1074).
This reland addresses the regression:
- allows annotation scope to access class fields (instead of static type information which was incorrect)
- allows comprehension scopre to access class fields (this leaves the test still broken --- since comprehension scoping is incorrect for iterator expressions in a comprehension)
Pull Request resolved: #1079
Reviewed By: samwgoldman
Differential Revision: D82332705
Pulled By: stroxler
fbshipit-source-id: 8ae342c6b15993d9e06b4f7b29c2a13efcd5036c1 parent f3c7a96 commit 4ffa2e0
2 files changed
+27
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
788 | 788 | | |
789 | 789 | | |
790 | 790 | | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
791 | 801 | | |
792 | 802 | | |
793 | 803 | | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
794 | 817 | | |
795 | 818 | | |
796 | 819 | | |
| |||
814 | 837 | | |
815 | 838 | | |
816 | 839 | | |
| 840 | + | |
817 | 841 | | |
818 | 842 | | |
819 | 843 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
636 | 636 | | |
637 | 637 | | |
638 | 638 | | |
639 | | - | |
| 639 | + | |
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
| |||
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
653 | | - | |
| 653 | + | |
654 | 654 | | |
655 | | - | |
| 655 | + | |
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
| |||
0 commit comments