7ce62a5b64
A single test file will be generated out of box/ directory
16 lines
225 B
Kotlin
16 lines
225 B
Kotlin
class Test {
|
|
var Int.foo: String = "OK"
|
|
private set(str: String) {
|
|
$foo = str
|
|
}
|
|
|
|
fun test(): String {
|
|
val i = 1
|
|
i.foo = "OK"
|
|
return i.foo
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return Test().test()
|
|
} |