Skip to content

Commit 3ea39ea

Browse files
committed
Simplify function erasure
1 parent 81f5677 commit 3ea39ea

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

compiler/src/dotty/tools/dotc/core/TypeErasure.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -567,10 +567,7 @@ object TypeErasure {
567567
functionType(info.resultType)
568568
case info: MethodType =>
569569
assert(!info.resultType.isInstanceOf[MethodicType])
570-
defn.FunctionType(
571-
n = info.erasedParams.count(_ == false),
572-
isContextual = info.isImplicitMethod,
573-
)
570+
defn.FunctionType(n = info.erasedParams.count(_ == false))
574571
}
575572
erasure(functionType(applyInfo))
576573
}

0 commit comments

Comments
 (0)