61302a2e08
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
48 lines
636 B
Kotlin
Vendored
48 lines
636 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
// FILE: a/a.java
|
|
package a;
|
|
|
|
public class a {}
|
|
|
|
// FILE: a/b.java
|
|
package a;
|
|
|
|
public class b {
|
|
public void a_b() {}
|
|
}
|
|
|
|
// FILE: test/a.java
|
|
package test;
|
|
|
|
public class a {}
|
|
|
|
// FILE: test/d.java
|
|
package test;
|
|
|
|
public class d {
|
|
public a.b getB() { return null; }
|
|
}
|
|
|
|
// FILE: b.kt
|
|
package test
|
|
|
|
val x = d().<!MISSING_DEPENDENCY_CLASS!>getB<!>()
|
|
|
|
// FILE: test/c.java
|
|
package test;
|
|
|
|
import a.a;
|
|
|
|
public class c {
|
|
public static a getA() { return null; }
|
|
}
|
|
|
|
// FILE: c.kt
|
|
package test
|
|
|
|
fun foo() {
|
|
val a = c.getA()
|
|
a.<!UNRESOLVED_REFERENCE!>a<!>
|
|
a.<!UNRESOLVED_REFERENCE!>a<!>()
|
|
}
|