Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/smartcasts/kt10463.fir.kt
T

6 lines
125 B
Kotlin
Vendored

val test: Int = listOf<Any>().map {
when (it) {
is Int -> it
else -> throw AssertionError()
}
}.sum()