mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
27 lines
466 B
Kotlin
Vendored
27 lines
466 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS
|
|
|
|
// 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 = "K"
|
|
|
|
// FILE: foo.kt
|
|
|
|
@file:[JvmName("Util") JvmMultifileClass]
|
|
public fun foo(): String = "O"
|
|
|
|
// FILE: test.kt
|
|
|
|
fun box(): String = Baz.baz()
|