Files
kotlin-fork/compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012_multi.kt
T
2021-02-02 17:50:05 +03:00

26 lines
308 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// WITH_STDLIB
// MODULE: lib
// FILE: A.kt
@file:JvmName("TTest")
@file:JvmMultifileClass
package test
var property = "fail"
private set
fun test() {
property = "OK"
}
// MODULE: main(lib)
// FILE: B.kt
import test.*
fun box(): String {
test()
return property
}