[FIR] Find the correct FIR file in Java finder for file with JvmName

#KT-57802
This commit is contained in:
Ivan Kylchik
2023-07-10 12:55:59 +02:00
committed by Space Team
parent 8c7c44f9f5
commit a45bb8d92b
11 changed files with 92 additions and 14 deletions
@@ -0,0 +1,21 @@
// TARGET_BACKEND: JVM
// IGNORE_LIGHT_ANALYSIS
// WITH_STDLIB
// FILE: Bar.java
package one.two;
public class Bar {
public static final int BAR = OtherKt.FOO + 1;
}
// FILE: Main.kt
@file:JvmName(<!EVALUATED("OtherKt")!>"OtherKt"<!>)
package one.two
const val FOO = <!EVALUATED("1")!>1<!>
const val BAZ = <!EVALUATED("3")!>Bar.BAR + 1<!>
fun box(): String {
return "OK"
}