[FIR] Correctly process invalid implicit invoke
^KT-60170 fixed Merge-request: KT-MR-12926 Merged-by: Egor Kulikov <Egor.Kulikov@jetbrains.com>
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
// IGNORE_FE10
|
||||
fun f(s: String, action: (String.() -> Unit)?) {
|
||||
<expr>s.action</expr>?.let { it() }
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
KtErrorCallInfo:
|
||||
candidateCalls = [
|
||||
KtSimpleFunctionCall:
|
||||
isImplicitInvoke = true
|
||||
partiallyAppliedSymbol = KtPartiallyAppliedSymbol:
|
||||
dispatchReceiver = KtExplicitReceiverValue:
|
||||
expression = action
|
||||
isSafeNavigation = false
|
||||
type = @ExtensionFunctionType kotlin.Function1<kotlin.String, kotlin.Unit>?
|
||||
extensionReceiver = KtExplicitReceiverValue:
|
||||
expression = s
|
||||
isSafeNavigation = false
|
||||
type = kotlin.String
|
||||
signature = KtFunctionLikeSignature:
|
||||
receiverType = null
|
||||
returnType = kotlin.Unit
|
||||
symbol = kotlin/Function1.invoke(<dispatch receiver>: kotlin.Function1<P1, R>, p1: P1): R
|
||||
valueParameters = [
|
||||
KtVariableLikeSignature:
|
||||
name = p1
|
||||
receiverType = null
|
||||
returnType = kotlin.String
|
||||
symbol = p1: P1
|
||||
callableIdIfNonLocal = null
|
||||
]
|
||||
callableIdIfNonLocal = kotlin/Function1.invoke
|
||||
typeArgumentsMapping = {}
|
||||
argumentMapping = {}
|
||||
]
|
||||
diagnostic = ERROR<FUNCTION_CALL_EXPECTED: Function invocation 'action(...)' expected.>
|
||||
Reference in New Issue
Block a user