Files
kotlin-fork/compiler/testData/diagnostics/tests/substitutions/starProjections.fir.kt
T
Nikolay Lunyak 425d5e808b [FIR] Link some tests with issues
Just in case.

^KT-59874
2023-11-14 15:19:33 +00:00

26 lines
456 B
Kotlin
Vendored

// ISSUE: KT-63072
// !CHECK_TYPE
interface A<R, T: A<R, T>> {
fun r(): R
fun t(): T
}
fun testA(a: A<*, *>) {
a.r().checkType { _<Any?>() }
a.t().checkType { _<A<*, *>>() }
}
interface B<R, T: B<List<R>, <!UPPER_BOUND_VIOLATED!>T<!>>> {
fun r(): R
fun t(): T
}
fun testB(b: B<*, *>) {
b.r().checkType { _<Any?>() }
b.t().checkType { <!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>_<!><B<List<*>, *>>() }
b.t().r().size
}