26 lines
442 B
Kotlin
Vendored
26 lines
442 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
fun testFun() {
|
|
System.out.println("testFun")
|
|
}
|
|
|
|
var testProp: Any
|
|
get() {
|
|
System.out.println("testProp/get")
|
|
return 42
|
|
}
|
|
set(value) {
|
|
System.out.println("testProp/set")
|
|
}
|
|
|
|
class TestClass {
|
|
val test = when {
|
|
else -> {
|
|
System.out.println("TestClass/test")
|
|
42
|
|
}
|
|
}
|
|
|
|
init {
|
|
System.out.println("TestClass/init")
|
|
}
|
|
} |