Type parameters for accessors should be taken from their property.
This commit is contained in:
committed by
alexander-gorshenev
parent
c944ea78c1
commit
a703647b79
+6
-3
@@ -76,7 +76,11 @@ internal class IrDescriptorSerializer(
|
||||
proto.addValueParameter(serializeDescriptor(it))
|
||||
}
|
||||
|
||||
descriptor.typeParameters.forEach {
|
||||
val typeParameters = if (descriptor is PropertyAccessorDescriptor)
|
||||
descriptor.correspondingProperty.typeParameters
|
||||
else descriptor.typeParameters
|
||||
|
||||
typeParameters.forEach {
|
||||
proto.addTypeParameter(serializeDescriptor(it))
|
||||
}
|
||||
|
||||
@@ -122,12 +126,11 @@ internal class IrDescriptorSerializer(
|
||||
|
||||
val index = descriptorTable.indexByValue(descriptor)
|
||||
// For getters and setters we use
|
||||
// the *protperty* original index.
|
||||
// the *property* original index.
|
||||
val originalIndex = if (descriptor is PropertyAccessorDescriptor) {
|
||||
descriptorTable.indexByValue(descriptor.correspondingProperty.original)
|
||||
} else {
|
||||
descriptorTable.indexByValue(descriptor.original)
|
||||
|
||||
}
|
||||
|
||||
context.log("index = $index")
|
||||
|
||||
Reference in New Issue
Block a user