Skip to content

Commit d2dde86

Browse files
nicolasstuckiKordyjan
authored andcommitted
Simplify function erasure
[Cherry-picked 3ea39ea]
1 parent b577f64 commit d2dde86

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)