FIR: Update test data (incorrect NEW_INFERENCE_ERROR with self types)

^KT-46661 Relates
This commit is contained in:
Denis.Zharkov
2021-05-13 15:41:15 +03:00
committed by teamcityserver
parent 4433dffbd3
commit 7c05c6420a
2 changed files with 9 additions and 2 deletions
@@ -0,0 +1,8 @@
// WITH_RUNTIME
// !DIAGNOSTICS: -UNUSED_VARIABLE
class Foo<T : Enum<T>>(val values: Array<T>)
fun foo(x: Array<out Enum<*>>) {
val y = <!NEW_INFERENCE_ERROR!>Foo(x)<!>
}
@@ -1,9 +1,8 @@
// FIR_IDENTICAL
// WITH_RUNTIME
// !DIAGNOSTICS: -UNUSED_VARIABLE
class Foo<T : Enum<T>>(val values: Array<T>)
fun foo(x: Array<out Enum<*>>) {
val y = <!NEW_INFERENCE_ERROR!>Foo(x)<!>
val y = Foo(x)
}