Files

6 lines
125 B
Kotlin
Vendored

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