File tree 1 file changed +0
-8
lines changed
compiler/src/dotty/tools/backend/jvm
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -1798,14 +1798,6 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
1798
1798
boxInstantiated(toTypeKind(lambdaTarget.info.resultType), samMethodBType.returnType)
1799
1799
)
1800
1800
1801
- // check that types are equal for parameters and return type as required by spec of altMetafactory
1802
- def checkInstantiated (a : BType , b : BType ): Boolean =
1803
- (! a.isPrimitive && ! b.isPrimitive) || (a.isPrimitive && b.isPrimitive && a == b)
1804
- assert(
1805
- samMethodBType.argumentTypes.zip(instantiatedMethodBType.argumentTypes).forall(checkInstantiated) && checkInstantiated(samMethodBType.returnType,
1806
- instantiatedMethodBType.returnType), s " Primitive types must be equal: ${samMethodBType} vs. $instantiatedMethodBType"
1807
- )
1808
-
1809
1801
val instantiatedMethodType = instantiatedMethodBType.toASMType
1810
1802
1811
1803
// scala/bug#10334: make sure that a lambda object for `T => U` has a method `apply(T)U`, not only the `(Object)Object`
You can’t perform that action at this time.
0 commit comments