4038c758ca
Also, don't adapt argument when expected type is base reflection type (KCallable<T>, etc), since such types don't contain parameter types.
9 lines
149 B
Kotlin
Vendored
9 lines
149 B
Kotlin
Vendored
fun foo(x: String = ""): String = x
|
|
|
|
class C(val x: String = "")
|
|
|
|
fun use(fn: () -> Any) = fn()
|
|
|
|
fun testFn() = use(::foo)
|
|
|
|
fun testCtor() = use(::C) |