Files
kotlin-fork/compiler/testData/codegen/box/extensionProperties/inClassWithGetter.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

15 lines
195 B
Kotlin

class Test {
val Int.foo: String = "OK"
get() {
val a = $foo
return "OK"
}
fun test(): String {
return 1.foo
}
}
fun box(): String {
return Test().test()
}