Files
kotlin/compiler/testData/codegen/box/callableReference/property/javaBeanConvention.kt
2019-11-19 11:00:09 +03:00

16 lines
323 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// Name of the getter should be 'getaBcde' according to JavaBean conventions
var aBcde: Int = 239
fun box(): String {
val x = (::aBcde).get()
if (x != 239) return "Fail x: $x"
(::aBcde).set(42)
val y = (::aBcde).get()
if (y != 42) return "Fail y: $y"
return "OK"
}