Files
kotlin-fork/compiler/testData/diagnostics/tests/j+k/kt2641.fir.kt
T

18 lines
366 B
Kotlin
Vendored

// !CHECK_TYPE
package a
import java.util.Iterator
import java.lang.Comparable as Comp
fun bar(any: Any): java.lang.Iterable<Int>? {
val a: java.lang.Comparable<String>? = null
val b: Iterable<Integer>
val c : Iterator<String>? = null
if (any is Iterator<*>) {
checkSubtype<Iterator<*>>(any)
}
any as Iterator<*>
return null
}