KT-37131 Record default arguments in argument adaptation
Also, don't adapt argument when expected type is base reflection type (KCallable<T>, etc), since such types don't contain parameter types.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
fun foo(x: String = ""): String = x
|
||||
|
||||
class C(val x: String = "")
|
||||
|
||||
fun use(fn: () -> Any) = fn()
|
||||
|
||||
fun testFn() = use(::foo)
|
||||
|
||||
fun testCtor() = use(::C)
|
||||
Reference in New Issue
Block a user