Files
kotlin-fork/compiler/testData/codegen/box/properties/kt3118.kt
T
2019-11-19 11:00:09 +03:00

13 lines
244 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
package testing
class Test {
private val hello: String
get() { return "hello" }
fun sayHello() : String = hello
}
fun box(): String {
return if (Test().sayHello() == "hello") "OK" else "fail"
}