Files
kotlin-fork/compiler/testData/codegen/box/extensionProperties/inClassWithSetter.kt
T
Alexander Udalov 7ce62a5b64 Remove generated codegen tests, move all testData to box/
A single test file will be generated out of box/ directory
2013-01-28 18:20:21 +04:00

16 lines
222 B
Kotlin

class Test {
var Int.foo: String = "fail"
set(str: String) {
$foo = str
}
fun test(): String {
val i = 1
i.foo = "OK"
return i.foo
}
}
fun box(): String {
return Test().test()
}