Introduce FIR_IDENTICAL for FIR vs old frontend tests #KT-36879 Fixed
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
// FILE: A.java
|
||||
|
||||
public class A {
|
||||
public static final String FOO = "foo";
|
||||
}
|
||||
|
||||
// FILE: B.java
|
||||
|
||||
public class B extends A {
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
|
||||
const val K1 = B.FOO
|
||||
const val K2 = A.FOO
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// FILE: A.java
|
||||
|
||||
public class A {
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
// FILE: Bar.java
|
||||
|
||||
public class Bar {
|
||||
public static final int BAR = Foo.FOO + 1;
|
||||
}
|
||||
|
||||
// FILE: Test.kt
|
||||
|
||||
class Foo {
|
||||
companion object {
|
||||
const val FOO = 1
|
||||
}
|
||||
}
|
||||
|
||||
class Baz {
|
||||
companion object {
|
||||
const val BAZ = Bar.BAR + 1
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// FILE: Bar.java
|
||||
|
||||
public class Bar {
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
// FILE: Context.java
|
||||
|
||||
public interface Context {
|
||||
String BEAN = "context";
|
||||
}
|
||||
|
||||
// FILE: Test.kt
|
||||
|
||||
annotation class Resource(val name: String)
|
||||
|
||||
class MyController {
|
||||
companion object {
|
||||
private const val foo = Context.BEAN
|
||||
}
|
||||
|
||||
@Resource(name = Context.BEAN)
|
||||
fun setContext() {
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// FILE: Context.java
|
||||
|
||||
public interface Context {
|
||||
|
||||
Reference in New Issue
Block a user