Files
kotlin-fork/compiler/testData/diagnostics/tests/samConversions/multipleSamConversionConflictResolution.kt
T
2024-01-08 15:31:08 +00:00

11 lines
193 B
Kotlin
Vendored

// FIR_IDENTICAL
fun interface Runnable {
fun run()
}
fun foo(r: Runnable, f: Runnable) = 1
fun foo(r: Runnable, f: () -> Unit) = ""
fun test(): String {
return foo(Runnable {}, {})
}