14 lines
279 B
Kotlin
Vendored
14 lines
279 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !CHECK_TYPE
|
|
|
|
interface Clazz<T> {
|
|
val t: T
|
|
fun getSuperClass(): Clazz<in T>
|
|
}
|
|
|
|
fun test(clazz: Clazz<*>) {
|
|
clazz.t checkType { _<Any?>() }
|
|
clazz.getSuperClass() checkType { _<Clazz<*>>() }
|
|
clazz.getSuperClass().t checkType { _<Any?>() }
|
|
}
|