[FIR] Add JvmName to the list of REQUIRED_ANNOTATIONS
We need to resolve `JvmName` as soon as possible because it can be analyzed in `FirJavaElementFinder` to create the correct class stub. #KT-57802
This commit is contained in:
+7
@@ -6,6 +6,10 @@ package one.two;
|
||||
|
||||
public class Bar {
|
||||
public static final int BAR = OtherKt.FOO + 1;
|
||||
|
||||
public Child getChild() {
|
||||
return new Child();
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: Main.kt
|
||||
@@ -16,6 +20,9 @@ const val FOO = <!EVALUATED("1")!>1<!>
|
||||
|
||||
const val BAZ = <!EVALUATED("3")!>Bar.BAR + 1<!>
|
||||
|
||||
// This class is presented here to check that on super type resolve phase we have resolved `JvmName` annotation
|
||||
class Child : Bar()
|
||||
|
||||
fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user