Files
kotlin-fork/compiler/testData/diagnostics/tests/sealed/WhenOnEmptySealed.fir.kt
T

12 lines
184 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_EXPRESSION
sealed class Sealed {
}
fun foo(s: Sealed): Int {
return when(s) {
// We do not return anything, so else branch must be here
}
}