IR: deal with conflicting variances in computeSubstitutedSyntheticAccessor

This commit is contained in:
Georgy Bronnikov
2020-04-06 21:25:52 +03:00
parent 5700da2bae
commit 9ccda31189
8 changed files with 77 additions and 41 deletions
@@ -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"