Files
kotlin-fork/compiler/testData/ir/irText/expressions/callableReferences/adaptedExtensionFunctions.kt
T
Alexander Udalov 1071919706 Remove backend tests on old inference
Also remove any mentions of NewInference, and rename some tests.
2021-11-09 20:07:33 +01:00

22 lines
384 B
Kotlin
Vendored

fun use(f: C.(Int) -> Unit) {}
class C
fun C.extensionVararg(i: Int, vararg s: String) {}
fun C.extensionDefault(i: Int, s: String = "") {}
fun C.extensionBoth(i: Int, s: String = "", vararg t: String) {}
fun testExtensionVararg() {
use(C::extensionVararg)
}
fun testExtensionDefault() {
use(C::extensionDefault)
}
fun testExtensionBoth() {
use(C::extensionBoth)
}