mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
Currently all tests in boxWithStdlib/ run with both runtime and reflection included; eventually they'll be merged into box/ using these directives
29 lines
446 B
Kotlin
Vendored
29 lines
446 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
// 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()
|