Commit 7ad18b6
Use enclosing enclosingInlineds for empty call (scala#24281)
Fixes scala#24248
Adjust enclosing inlineds for inlined parameter, and do look-up in
imports if tree position is enclosed by any enclosing inlined position
(any intermediate position, not just outermost).
[Cherry-picked 2f320b8]1 parent fc451b3 commit 7ad18b6
File tree
3 files changed
+33
-2
lines changed- compiler/src/dotty/tools/dotc/transform
- tests/warn/i24248
3 files changed
+33
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
163 | 167 | | |
164 | 168 | | |
165 | 169 | | |
| |||
467 | 471 | | |
468 | 472 | | |
469 | 473 | | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
470 | 477 | | |
471 | 478 | | |
472 | 479 | | |
| |||
1035 | 1042 | | |
1036 | 1043 | | |
1037 | 1044 | | |
1038 | | - | |
| 1045 | + | |
1039 | 1046 | | |
1040 | 1047 | | |
1041 | 1048 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments