c7435ba760
We are going to deprecate `WITH_RUNTIME` directive. The main reason behind this change is that `WITH_STDLIB` directive better describes its meaning, specifically it will add kotlin stdlib to test's classpath.
30 lines
470 B
Kotlin
Vendored
30 lines
470 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// WITH_STDLIB
|
|
// 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()
|
|
|
|
private fun barx(): String = "K"
|
|
|
|
// FILE: foo.kt
|
|
|
|
@file:JvmName("Util")
|
|
@file:JvmMultifileClass
|
|
public fun foo(): String = foox()
|
|
|
|
private fun foox(): String = "O"
|
|
|
|
// FILE: test.kt
|
|
|
|
fun box(): String = Baz.baz()
|