Commit 8b09bab
committed
Make moduleVal/moduleClass return the current symbol when possible
This is more intuitive in my opinion.
As a side-effect, this makes the logic for creating stub package symbols
in `staticRef` more robust which broke the `missingDottyLib` test. This
is fixed by moving the `isPackageFromCoreLibMissing` check earlier.1 parent 3aa217f commit 8b09bab
File tree
3 files changed
+29
-16
lines changed- compiler/src/dotty/tools/dotc
- core
- interactive
3 files changed
+29
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1301 | 1301 | | |
1302 | 1302 | | |
1303 | 1303 | | |
| 1304 | + | |
1304 | 1305 | | |
1305 | 1306 | | |
1306 | 1307 | | |
1307 | 1308 | | |
1308 | 1309 | | |
1309 | | - | |
1310 | 1310 | | |
1311 | 1311 | | |
1312 | 1312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
852 | 852 | | |
853 | 853 | | |
854 | 854 | | |
855 | | - | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
856 | 858 | | |
857 | 859 | | |
858 | 860 | | |
| |||
870 | 872 | | |
871 | 873 | | |
872 | 874 | | |
873 | | - | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
874 | 879 | | |
875 | 880 | | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
881 | | - | |
882 | | - | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
883 | 898 | | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
888 | 902 | | |
889 | | - | |
890 | 903 | | |
891 | 904 | | |
892 | 905 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| |||
0 commit comments