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
27 lines
390 B
Kotlin
Vendored
27 lines
390 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// FILE: test.kt
|
|
package a
|
|
|
|
const val CONST = "CONST"
|
|
|
|
open class Test {
|
|
|
|
companion object {
|
|
const val CONST = 42
|
|
}
|
|
|
|
}
|
|
|
|
// FILE: a/x.java
|
|
package a;
|
|
|
|
public class x {
|
|
|
|
public static final String CONST1 = TestKt.CONST;
|
|
public static final int CONST2 = Test.CONST;
|
|
|
|
public class y extends Test {
|
|
public static final int I = CONST;
|
|
}
|
|
|
|
} |