File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class SpecializeFunctions extends MiniPhaseTransform with InfoTransformer {
37
37
val func = defn.FunctionClass (arity)
38
38
if (! parent.derivesFrom(func)) Nil
39
39
else {
40
- val typeParams = tp.typeRef.baseArgInfos (func)
40
+ val typeParams = tp.cls. typeRef.baseType (func).argInfos
41
41
val interface = specInterface(typeParams)
42
42
43
43
if (interface.exists) {
@@ -132,13 +132,13 @@ class SpecializeFunctions extends MiniPhaseTransform with InfoTransformer {
132
132
133
133
if (! tr.parents.exists(_.isRef(func))) Nil
134
134
else {
135
- val typeParams = tr.baseArgInfos (func)
135
+ val typeParams = tr.baseType (func).argInfos
136
136
val interface = specInterface(typeParams)
137
137
138
138
if (interface.exists) List (interface.info)
139
139
else Nil
140
140
}
141
- }.map(TypeTree )
141
+ }.map(TypeTree _ )
142
142
143
143
cpy.Template (tree)(
144
144
parents = tree.parents ++ missing,
You can’t perform that action at this time.
0 commit comments