FIR: Properly deserialize upper bounds of classes type parameters
^KT-46661 Fixed
This commit is contained in:
committed by
teamcityserver
parent
858e3584a9
commit
d4586cefb4
@@ -1,8 +0,0 @@
|
||||
// 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,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_RUNTIME
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user