Don't silently ignore argument mismatch for provide delegate
#KT-39816 Fixed
This commit is contained in:
@@ -571,7 +571,7 @@ class DelegatedPropertyResolver(
|
||||
variableDescriptor, delegateExpression, delegateTypeWithoutNonFixedVariables, contextForProvideDelegate
|
||||
)
|
||||
|
||||
if (conventionMethodFound(provideDelegateResults)) {
|
||||
if (provideDelegateResults.isSuccess) {
|
||||
val provideDelegateDescriptor = provideDelegateResults.resultingDescriptor
|
||||
if (provideDelegateDescriptor.isOperator) {
|
||||
delegateType = inverseSubstitution(provideDelegateDescriptor.returnType, substitutionMap) ?: return null
|
||||
|
||||
Reference in New Issue
Block a user