[NI] Don't compute conversions for definitely not SAM parameter
This commit is contained in:
+3
@@ -36,6 +36,9 @@ object SamTypeConversions : ParameterTypeConversion {
|
|||||||
if (!samConversionOracle.shouldRunSamConversionForFunction(candidate.resolvedCall.candidateDescriptor)) return true
|
if (!samConversionOracle.shouldRunSamConversionForFunction(candidate.resolvedCall.candidateDescriptor)) return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val declarationDescriptor = expectedParameterType.constructor.declarationDescriptor
|
||||||
|
if (declarationDescriptor is ClassDescriptor && declarationDescriptor.isDefinitelyNotSamInterface) return true
|
||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user