Files
kotlin-fork/compiler/testData/diagnostics/tests/inline/when.fir.kt
T

11 lines
257 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_EXPRESSION
inline public fun reg(converter: (Any) -> Any) {
converter("")
}
public inline fun register(converter: (Any) -> Any) {
reg(when(converter) {
is (Any) -> Any -> converter
else -> converter
})
}