[FIR] Fix failing Space build

Build failure was introduced by `9b786d35`,
where I forgot that typealiases exist.

^KT-64891
^KT-65336 Fixed

Merge-request: KT-MR-14087
Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com>
This commit is contained in:
Nikolay Lunyak
2024-01-26 16:32:18 +00:00
committed by Space Team
parent a593936b8a
commit 47a51f6499
4 changed files with 18 additions and 2 deletions
@@ -554,7 +554,7 @@ internal object CheckArguments : CheckerStage() {
private val Candidate.isInvokeFromExtensionFunctionType: Boolean
get() = explicitReceiverKind == DISPATCH_RECEIVER
&& dispatchReceiver?.resolvedType?.isExtensionFunctionType == true
&& dispatchReceiver?.resolvedType?.fullyExpandedType(this.callInfo.session)?.isExtensionFunctionType == true
&& (symbol as? FirNamedFunctionSymbol)?.name == OperatorNameConventions.INVOKE
internal fun Candidate.shouldHaveLowPriorityDueToSAM(bodyResolveComponents: BodyResolveComponents): Boolean {
@@ -3,4 +3,10 @@
fun test(f: (Int) -> Int) {
<!NO_RECEIVER_ALLOWED!>2.(f)()<!>
}
}
typealias TA = Int.() -> Int
fun rest(f: TA) {
2.(f)()
}
@@ -2,3 +2,7 @@ FILE: expressionsInQaSelectorsReceiverConversion.fir.kt
public final fun test(f: R|(kotlin/Int) -> kotlin/Int|): R|kotlin/Unit| {
R|<local>/f|.R|SubstitutionOverride<kotlin/Function1.invoke: R|kotlin/Int|><Inapplicable(INAPPLICABLE): kotlin/Function1.invoke>#|(Int(2))
}
public final typealias TA = R|kotlin/Int.() -> kotlin/Int|
public final fun rest(f: R|TA|): R|kotlin/Unit| {
R|<local>/f|.R|SubstitutionOverride<kotlin/Function1.invoke: R|kotlin/Int|>|(Int(2))
}
@@ -4,3 +4,9 @@
fun test(f: (Int) -> Int) {
2.<!NO_RECEIVER_ALLOWED!>(f)<!>()
}
typealias TA = Int.() -> Int
fun rest(f: TA) {
2.(f)()
}