Check no exception when static import in java is used and there's cyclic dependency between kotlin and java (KT-5848)
#KT-5848 Fixed
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
// FILE: backend/asmutil/AsmUtil.java
|
||||
package backend.asmutil;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import static frontend.JvmDeclarationOrigin.NO_ORIGIN;
|
||||
|
||||
public class AsmUtil {
|
||||
|
||||
@NotNull
|
||||
public static String doSmth(String s) {
|
||||
Object or = NO_ORIGIN;
|
||||
return "OK";
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: First.kt
|
||||
package frontend
|
||||
public class JvmDeclarationOrigin {
|
||||
class object {
|
||||
public val NO_ORIGIN: JvmDeclarationOrigin = JvmDeclarationOrigin()
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: Second.kt
|
||||
package backend
|
||||
|
||||
import backend.asmutil.AsmUtil.doSmth
|
||||
|
||||
open public class ECallable {
|
||||
fun test() {
|
||||
doSmth("")
|
||||
}
|
||||
}
|
||||
|
||||
/* KT-5848 */
|
||||
|
||||
Reference in New Issue
Block a user