// FULL_JDK // WITH_RUNTIME interface Foo { val foos: List } inline fun Sequence<*>.firstIsInstanceOrNull(): T? { for (element in this) if (element is T) return element return null } fun faultyLvt() { sequenceOf().firstIsInstanceOrNull()?.foos.orEmpty() listOf().map { it } } fun box(): String { faultyLvt() return "OK" }