Files
kotlin-fork/compiler/testData/diagnostics/tests/regressions/CoercionToUnit.fir.kt
T

10 lines
180 B
Kotlin
Vendored

fun foo(u : Unit) : Int = 1
fun test() : Int {
<!INAPPLICABLE_CANDIDATE!>foo<!>(1)
val a : () -> Unit = {
<!INAPPLICABLE_CANDIDATE!>foo<!>(1)
}
return 1
}