Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/adapted/simpleAdaptationOutsideOfCall.kt
T
Denis.Zharkov dcdc48a233 K2: Support callable references adaptation on top-level
^KT-45989 In progress
^KT-54709 Related
^KT-55217 Fixed
2023-02-15 08:13:44 +00:00

11 lines
229 B
Kotlin
Vendored

// SKIP_TXT
fun baz(options: String = ""): String = ""
fun runForString(x: () -> String) {}
fun foo(dumpStrategy: String) {
val dump0: () -> String = <!TYPE_MISMATCH!>::<!TYPE_MISMATCH!>baz<!><!>
runForString(::baz)
}