Files
kotlin-fork/compiler/testData/diagnostics/tests/cast/WhenWithExpression.kt
T

13 lines
270 B
Kotlin
Vendored

// FIR_IDENTICAL
class List<out T>(val size : Int) {
companion object {
val Nil = List<Nothing>(0)
}
}
fun List<String>.join() =
when (this) {
List.Nil -> "[]" // CANNOT_CHECK_FOR_ERASED was reported
else -> ""
}