ae401cac0f
#KT-5696 Fixed
12 lines
249 B
Kotlin
12 lines
249 B
Kotlin
class List<out T>(val size : Int) {
|
|
class object {
|
|
val Nil = List<Nothing>(0)
|
|
}
|
|
}
|
|
|
|
fun List<String>.join() =
|
|
when (this) {
|
|
List.Nil -> "[]" // CANNOT_CHECK_FOR_ERASED was reported
|
|
else -> ""
|
|
}
|