Files
kotlin-fork/compiler/testData/codegen/box/fir/staticImportViaInheritance.kt
T
Alexander Udalov cab53361f3 Use JVM IR backend in light analysis mode tests
Add some more filters on private/synthetic stuff (which doesn't matter
in practice) to make full and light analysis mode dumps as similar as
possible, so that all existing tests will pass for JVM IR. Unmute some
tests which were failing with the old JVM backend.

Tests on repeatable annotations are muted because in full analysis,
annotations are wrapped into the container (e.g. `@A(1) @A(2)` ->
`@A$Container(A(1), A(2))`), but they are no in the light analysis mode.
So there's always going to be a difference for these tests between full
and light analysis, unless we're going to change behavior of kapt, which
would be a kind of a breaking change.

 #KT-58497 Fixed
2023-06-22 17:10:51 +02:00

24 lines
465 B
Kotlin
Vendored

// TARGET_BACKEND: JVM_IR
// ISSUE: KT-59140
// IGNORE_LIGHT_ANALYSIS
// ^ MISSING_DEPENDENCY_SUPERCLASS: Cannot access 'pkg.CommonFoo' which is a supertype of 'pkg.Foo'. Check your module classpath for missing or conflicting dependencies
// FILE: pkg/Foo.java
package pkg;
abstract class CommonFoo {
public static final String BAR = "OK";
}
public class Foo extends CommonFoo {}
// FILE: test.kt
import pkg.Foo.BAR
fun box(): String {
return BAR
}