Commit 448f048
Refactor constant folding of applications
Move them in typedApply/typedTypeApply instead of leaving them until adapt.
This aligns these folds with folds of uniary operations, which are done already
in typedSelect and avoids potentially several calls to ConstFold when arguments
are passed to overloaded methods.
[Cherry-picked 235c047]1 parent f73c990 commit 448f048
File tree
3 files changed
+13
-3
lines changed- compiler/src/dotty/tools/dotc/typer
- tests/pos
3 files changed
+13
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1106 | 1106 | | |
1107 | 1107 | | |
1108 | 1108 | | |
1109 | | - | |
| 1109 | + | |
1110 | 1110 | | |
1111 | 1111 | | |
1112 | 1112 | | |
1113 | 1113 | | |
1114 | 1114 | | |
| 1115 | + | |
1115 | 1116 | | |
1116 | 1117 | | |
1117 | 1118 | | |
| |||
1171 | 1172 | | |
1172 | 1173 | | |
1173 | 1174 | | |
1174 | | - | |
| 1175 | + | |
| 1176 | + | |
1175 | 1177 | | |
1176 | 1178 | | |
1177 | 1179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4129 | 4129 | | |
4130 | 4130 | | |
4131 | 4131 | | |
4132 | | - | |
| 4132 | + | |
4133 | 4133 | | |
4134 | 4134 | | |
4135 | 4135 | | |
| |||
| 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