5d3fe7547a
For type parameters of generic properties, `DeclarationDescriptor#getContainingDeclaration` must return the property descriptor instead of the accessor function descriptor. ^KT-57436 Fixed
19 lines
411 B
Kotlin
Vendored
19 lines
411 B
Kotlin
Vendored
// IGNORE_BACKEND: JS_IR
|
|
// IGNORE_BACKEND: JS_IR_ES6
|
|
interface CPointed
|
|
|
|
inline fun <reified T : CPointed> CPointed.reinterpret(): T = TODO()
|
|
|
|
class CInt32VarX<T> : CPointed
|
|
typealias CInt32Var = CInt32VarX<Int>
|
|
|
|
var <T_INT : Int> CInt32VarX<T_INT>.value: T_INT
|
|
get() = TODO()
|
|
set(value) {}
|
|
|
|
class IdType(val value: Int) : CPointed
|
|
|
|
fun foo(value: IdType, cv: CInt32Var) {
|
|
cv.value = value.value
|
|
}
|