Files
kotlin-fork/compiler/testData/codegen/box/properties/primitiveOverrideDefaultAccessor.kt
T
Mark Punzalan 5afab1ac2b [FIR] FIR2IR: Populate calls with type arguments and function type
parameters with bounds/supertypes.
2019-11-25 09:37:47 +03:00

12 lines
201 B
Kotlin
Vendored

interface R<T: Comparable<T>> {
var value: T
}
class A(override var value: Int): R<Int>
fun box(): String {
val a = A(239)
a.value = 42
return if (a.value == 42) "OK" else "Fail 1"
}