[FIR] Good test data fixes (around captured types)

This commit is contained in:
Mikhail Glukhikh
2020-09-10 09:24:45 +03:00
parent c2d9fc469a
commit 4605a65f41
38 changed files with 76 additions and 135 deletions
@@ -1,12 +0,0 @@
// !CHECK_TYPE
class A<T> {
fun foo(): T = null!!
}
fun <E> A<E>.bar(): A<in E> = this
fun baz(x: A<out CharSequence>) {
x.bar() checkType { _<A<*>>() }
x.bar().foo() checkType { <!INAPPLICABLE_CANDIDATE!>_<!><Any?>() } // See KT-10448
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !CHECK_TYPE
class A<T> {