Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
4f8dad3e4ba00e23b4182ef4c50194b20bd43c8f
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
cast
/
WhenWithExpression.kt
blob: d036a290867ed6d89d8dd7103045806f30ec603e [
file
]
// 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
->
""
}