Have "in type" for java fields to be able to check that type in assignment positions (against rhs' type)
^KT-46727 Fixed
This commit is contained in:
@@ -884,6 +884,8 @@ open class IrBasedPropertyDescriptor(owner: IrProperty) :
|
||||
TODO("not implemented")
|
||||
}
|
||||
|
||||
override fun getInType(): KotlinType? = setter?.valueParameters?.get(0)?.type
|
||||
|
||||
override fun <V : Any?> getUserData(key: CallableDescriptor.UserDataKey<V>?): V? = null
|
||||
}
|
||||
|
||||
@@ -1062,6 +1064,8 @@ open class IrBasedFieldDescriptor(owner: IrField) : PropertyDescriptor, IrBasedD
|
||||
override fun getBackingField(): FieldDescriptor? = null // TODO
|
||||
override fun getDelegateField(): FieldDescriptor? = null // TODO
|
||||
|
||||
override fun getInType(): KotlinType? = setter?.valueParameters?.get(0)?.type
|
||||
|
||||
override fun <V : Any?> getUserData(key: CallableDescriptor.UserDataKey<V>?): V? = null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user