FIR: load parents of Java inner classes first, as before

This commit is contained in:
pyos
2021-09-09 17:24:51 +02:00
committed by TeamCityServer
parent cac0cf6a50
commit 8ff79e002e
8 changed files with 63 additions and 23 deletions
@@ -0,0 +1,21 @@
// TARGET_BACKEND: JVM
// This is really a frontend test that checks loading of compiled Java classes.
// MODULE: lib
// FILE: I.java
public interface I<T> {}
// FILE: J.java
public class J implements I<J.X> {
public static class X {}
}
// FILE: Z.java
public class Z<T> {
public T foo(J.X x) { return null; }
}
// MODULE: main(lib)
// FILE: main.kt
class C : Z<Int>()
fun box() = C().foo(null) ?: "OK"