Files
kotlin-fork/compiler/testData/codegen/box/callableReference/function/coercionToUnit.kt
T
Alexander Udalov 1071919706 Remove backend tests on old inference
Also remove any mentions of NewInference, and rename some tests.
2021-11-09 20:07:33 +01:00

14 lines
199 B
Kotlin
Vendored

fun foo(s: String): Boolean {
if (s != "kotlin") throw AssertionError(s)
return true
}
fun bar(f: (String) -> Unit) {
f("kotlin")
}
fun box(): String {
bar(::foo)
return "OK"
}