K2: reproduce KT-61959

This commit is contained in:
Mikhail Glukhikh
2023-09-22 17:26:29 +02:00
committed by Space Team
parent 92470484bf
commit cdc197c723
7 changed files with 56 additions and 0 deletions
@@ -0,0 +1,13 @@
// ISSUE: KT-61959
package test
interface OuterParam
class Outer<OuterParam> {
class Nested<NestedParam : OuterParam>
}
fun main() {
Outer.Nested<<!UPPER_BOUND_VIOLATED!>OuterParam<!>>()
}
@@ -0,0 +1,13 @@
// ISSUE: KT-61959
package test
interface OuterParam
class Outer<OuterParam> {
class Nested<NestedParam : OuterParam>
}
fun main() {
Outer.Nested<OuterParam>()
}