K2: fix CCE during bound conversion for Java raw Kotlin-based type

#KT-56630 Fixed
This commit is contained in:
Mikhail Glukhikh
2023-02-14 15:21:17 +01:00
committed by Space Team
parent d1e0a432a5
commit 58959951d3
8 changed files with 93 additions and 17 deletions
@@ -0,0 +1,18 @@
FILE: test.kt
public abstract interface Inter : R|kotlin/Any| {
}
public open class Apple<T : R|Inter|> : R|Inter| {
public constructor<T : R|Inter|>(): R|Apple<T>| {
super<R|kotlin/Any|>()
}
}
public final class XXX : R|Usage| {
public constructor(): R|XXX| {
super<R|Usage|>()
}
}
public final fun main(): R|kotlin/Unit| {
R|kotlin/io/println|(R|/XXX.XXX|())
}
@@ -0,0 +1,16 @@
// ISSUE: KT-56630
// FILE: Usage.java
public class Usage extends Apple {
}
// FILE: test.kt
interface Inter
open class Apple<T : Inter> : Inter
class XXX : Usage()
fun main() {
println(XXX())
}