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