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

12 lines
253 B
Kotlin
Vendored

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 -> ""
}