1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
20 lines
300 B
Kotlin
20 lines
300 B
Kotlin
class Test {
|
|
var storage = "Fail"
|
|
|
|
var Int.foo: String
|
|
get() = storage
|
|
private set(str: String) {
|
|
storage = str
|
|
}
|
|
|
|
fun test(): String {
|
|
val i = 1
|
|
i.foo = "OK"
|
|
return i.foo
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return Test().test()
|
|
}
|