FIR: account for vararg when creating KFunction type for callable reference
This commit is contained in:
committed by
Mikhail Glukhikh
parent
e5e50eabe9
commit
4e14f9500f
compiler/testData/diagnostics/tests/callableReference/referenceAdaptationHasDependencyOnApi14.fir.kt
Vendored
+2
-2
@@ -13,6 +13,6 @@ fun allOfTheAbove(f: (A) -> Unit): Any = f
|
||||
fun test() {
|
||||
coercionToUnit(A::foo)
|
||||
<!INAPPLICABLE_CANDIDATE!>varargToElement<!>(A::foo)
|
||||
<!INAPPLICABLE_CANDIDATE!>defaultAndVararg<!>(A::foo)
|
||||
<!INAPPLICABLE_CANDIDATE!>allOfTheAbove<!>(A::foo)
|
||||
defaultAndVararg(A::foo)
|
||||
allOfTheAbove(A::foo)
|
||||
}
|
||||
Reference in New Issue
Block a user