Skip to content

Commit 87954f1

Browse files
committed
Fix compilation errors
1 parent ffb309a commit 87954f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/transform/SpecializeFunctions.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class SpecializeFunctions extends MiniPhaseTransform with InfoTransformer {
3737
val func = defn.FunctionClass(arity)
3838
if (!parent.derivesFrom(func)) Nil
3939
else {
40-
val typeParams = tp.typeRef.baseArgInfos(func)
40+
val typeParams = tp.cls.typeRef.baseType(func).argInfos
4141
val interface = specInterface(typeParams)
4242

4343
if (interface.exists) {
@@ -132,13 +132,13 @@ class SpecializeFunctions extends MiniPhaseTransform with InfoTransformer {
132132

133133
if (!tr.parents.exists(_.isRef(func))) Nil
134134
else {
135-
val typeParams = tr.baseArgInfos(func)
135+
val typeParams = tr.baseType(func).argInfos
136136
val interface = specInterface(typeParams)
137137

138138
if (interface.exists) List(interface.info)
139139
else Nil
140140
}
141-
}.map(TypeTree)
141+
}.map(TypeTree _)
142142

143143
cpy.Template(tree)(
144144
parents = tree.parents ++ missing,

0 commit comments

Comments
 (0)