Files
kotlin-fork/compiler/testData/diagnostics/tests/unitConversion/kt49394.kt
T
2022-05-23 12:36:25 +02:00

16 lines
337 B
Kotlin
Vendored

fun interface Run {
fun run()
}
fun handle(run: Run) {
//...
}
val x = {
"STRING"
}
fun test() {
handle(<!UNSUPPORTED_FEATURE("The feature "unit conversions on arbitrary expressions" is experimental and should be enabled explicitly. You can also change the original type of this expression to (...) -> Unit")!>x<!>)
}