1071919706
Also remove any mentions of NewInference, and rename some tests.
22 lines
384 B
Kotlin
Vendored
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)
|
|
}
|