[TEST] Migrate duplicating javac tests to new test runners

Also minimize scope of DiagnosticUsingJavac tests to
 `compiler/testData/diagnostics/tests/javac`. This is fine since
 javac compilation mode is still not finished and no one not going to
 support it
This commit is contained in:
Dmitriy Novozhilov
2020-12-15 15:22:48 +03:00
parent b44dc55109
commit 61302a2e08
156 changed files with 1631 additions and 35369 deletions
@@ -0,0 +1,43 @@
// FIR_IDENTICAL
// FILE: a/b/c.java
package a.b;
public class c {
public void ab_c() {}
}
// FILE: a/b.java
package a;
public class b {
public void a_b() {}
public static class c {
public void a_bc() {}
}
}
// FILE: d/d.java
package d;
public class d {
public a.b test() { return null; }
public a.b.c test2() { return null; }
}
// FILE: c.kt
fun t() = d.d().test()
fun t2() = d.d().test2()
fun test(a_b: a.b) {
a_b.a_b()
val ab_c = t2()
ab_c.<!UNRESOLVED_REFERENCE!>ab_c<!>()
ab_c.a_bc()
}
fun test2() = t().a_b()