3a4b8962f9
I could not figure out the reason for the special case in that function. Tests do not show anything useful.
13 lines
184 B
Kotlin
Vendored
13 lines
184 B
Kotlin
Vendored
// MODULE: lib
|
|
// FILE: 1.kt
|
|
var <T> T.prop: Int
|
|
get() = 33
|
|
set(value) {}
|
|
|
|
// MODULE: main(lib)
|
|
// FILE: 2.kt
|
|
fun <T> setProp(t: T, v: Int) {
|
|
t.prop = v
|
|
}
|
|
|
|
fun box() = "OK" |