Files
kotlin/compiler/testData/codegen/boxWithJava/fileClasses/multifileClassWithPrivate.kt
Alexander Udalov daab3db062 Add WITH_RUNTIME and WITH_REFLECT directives to box tests
Currently all tests in boxWithStdlib/ run with both runtime and reflection
included; eventually they'll be merged into box/ using these directives
2016-03-03 16:11:21 +03:00

29 lines
448 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()
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()