Files
kotlin-fork/compiler/testData/codegen/box/objects/kt1047.kt
T
Vladimir Sukharev 7930885131 [Test] Convert IGNORE: NATIVE directives in box tests from M to R
^KT-59057

Merge-request: KT-MR-10757
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2023-06-23 14:15:48 +00:00

17 lines
289 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// TARGET_BACKEND: JVM_IR
public open class Test() {
open public fun test() : Unit {
System.out?.println(hello)
}
companion object {
private val hello : String? = "Hello"
}
}
fun box() : String {
Test().test()
return "OK"
}