mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
Currently all tests in boxWithStdlib/ run with both runtime and reflection included; eventually they'll be merged into box/ using these directives
23 lines
322 B
Kotlin
Vendored
23 lines
322 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
// FILE: Baz.java
|
|
|
|
public class Baz {
|
|
public static String baz() {
|
|
return Foo.foo() + Bar.bar();
|
|
}
|
|
}
|
|
|
|
// FILE: bar.kt
|
|
|
|
@file:JvmName("Bar")
|
|
public fun bar(): String = "K"
|
|
|
|
// FILE: foo.kt
|
|
|
|
@file:JvmName("Foo")
|
|
public fun foo(): String = "O"
|
|
|
|
// FILE: test.kt
|
|
|
|
fun box(): String = Baz.baz()
|