IR: deal with conflicting variances in computeSubstitutedSyntheticAccessor
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
// FILE: C.java
|
||||
|
||||
class C<T> {
|
||||
public C<? super T> getXx() { return this; }
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun test() {
|
||||
var c: C<out Any?> = C()
|
||||
c = c.xx
|
||||
}
|
||||
|
||||
fun box() = "OK"
|
||||
Reference in New Issue
Block a user