Files
kotlin-fork/compiler/testData/ir/irText/expressions/callableReferences/adaptedExtensionFunctions.fir.kt.txt
T
2020-11-26 00:15:13 +03:00

33 lines
525 B
Plaintext
Vendored

fun use(f: @ExtensionFunctionType @ExtensionFunctionType Function2<C, Int, Unit>) {
}
class C {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
}
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(f = ::extensionVararg)
}
fun testExtensionDefault() {
use(f = ::extensionDefault)
}
fun testExtensionBoth() {
use(f = ::extensionBoth)
}