Files
kotlin-fork/compiler/testData/codegen/box/compileKotlinAgainstKotlin/genericSetter.kt
T
Georgy Bronnikov 3a4b8962f9 Fir2Ir: simplify getCachedIrTypeParameter
I could not figure out the reason for the special case in that function.
Tests do not show anything useful.
2022-05-19 12:02:44 +02:00

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"