Commit 6a1e1a5
Use enclosing enclosingInlineds for empty call (#24281)
Fixes #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 d209f5a commit 6a1e1a5
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 | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
143 | 147 | | |
144 | 148 | | |
145 | 149 | | |
| |||
422 | 426 | | |
423 | 427 | | |
424 | 428 | | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
425 | 432 | | |
426 | 433 | | |
427 | 434 | | |
| |||
1010 | 1017 | | |
1011 | 1018 | | |
1012 | 1019 | | |
1013 | | - | |
| 1020 | + | |
1014 | 1021 | | |
1015 | 1022 | | |
1016 | 1023 | | |
| |||
| 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