K2: Support callable references adaptation on top-level
^KT-45989 In progress ^KT-54709 Related ^KT-55217 Fixed
This commit is contained in:
committed by
Space Team
parent
8f8ea8c57f
commit
dcdc48a233
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
// SKIP_TXT
|
||||
fun baz(options: String = ""): String = ""
|
||||
|
||||
fun runForString(x: () -> String) {}
|
||||
|
||||
fun foo(dumpStrategy: String) {
|
||||
val dump0: () -> String = ::baz
|
||||
|
||||
runForString(::baz)
|
||||
}
|
||||
Reference in New Issue
Block a user