K2: fix CCE during bound conversion for Java raw Kotlin-based type
#KT-56630 Fixed
This commit is contained in:
committed by
Space Team
parent
d1e0a432a5
commit
58959951d3
Vendored
+18
@@ -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|())
|
||||
}
|
||||
Vendored
+16
@@ -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())
|
||||
}
|
||||
Reference in New Issue
Block a user