FIR: Update test data (incorrect NEW_INFERENCE_ERROR with self types)
^KT-46661 Relates
This commit is contained in:
committed by
teamcityserver
parent
4433dffbd3
commit
7c05c6420a
@@ -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
|
// WITH_RUNTIME
|
||||||
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
||||||
|
|
||||||
class Foo<T : Enum<T>>(val values: Array<T>)
|
class Foo<T : Enum<T>>(val values: Array<T>)
|
||||||
|
|
||||||
fun foo(x: Array<out Enum<*>>) {
|
fun foo(x: Array<out Enum<*>>) {
|
||||||
val y = <!NEW_INFERENCE_ERROR!>Foo(x)<!>
|
val y = Foo(x)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user