mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 00:21:35 +00:00
Instead of a JVMConfigurationKeys key. This will allow to use it in a checker in 'frontend.java'
33 lines
548 B
Kotlin
Vendored
33 lines
548 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
// IGNORE_LIGHT_ANALYSIS
|
|
// WITH_RUNTIME
|
|
// !INHERIT_MULTIFILE_PARTS
|
|
// FILE: Baz.java
|
|
|
|
public class Baz {
|
|
public static String baz() {
|
|
return Util.foo() + Util.bar();
|
|
}
|
|
}
|
|
|
|
// FILE: bar.kt
|
|
|
|
@file:JvmName("Util")
|
|
@file:JvmMultifileClass
|
|
public fun bar(): String = barx()
|
|
|
|
public fun foox(): String = "O"
|
|
|
|
// FILE: foo.kt
|
|
|
|
@file:JvmName("Util")
|
|
@file:JvmMultifileClass
|
|
public fun foo(): String = foox()
|
|
|
|
public fun barx(): String = "K"
|
|
|
|
// FILE: test.kt
|
|
|
|
fun box(): String = Baz.baz()
|