Commit 321d0d2
authored
Refactor constant folding of applications (#20099)
Move them in typedApply/typedTypeApply instead of leaving them until
adapt. This aligns these folds with folds of unary operations, which are
done already in typedSelect and avoids potentially several calls to
ConstFold when arguments are passed to overloaded methods.File tree
3 files changed
+11
-2
lines changed- compiler/src/dotty/tools/dotc/typer
- tests/pos
3 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1124 | 1124 | | |
1125 | 1125 | | |
1126 | 1126 | | |
1127 | | - | |
| 1127 | + | |
1128 | 1128 | | |
1129 | 1129 | | |
1130 | 1130 | | |
1131 | 1131 | | |
1132 | 1132 | | |
| 1133 | + | |
1133 | 1134 | | |
1134 | 1135 | | |
1135 | 1136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4196 | 4196 | | |
4197 | 4197 | | |
4198 | 4198 | | |
4199 | | - | |
| 4199 | + | |
4200 | 4200 | | |
4201 | 4201 | | |
4202 | 4202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
18 | 26 | | |
0 commit comments