KT-1934: Fixing synthetic accessors hierarchy
This commit is contained in:
@@ -41,6 +41,14 @@ public class AccessorForConstructorDescriptor(
|
|||||||
|
|
||||||
override fun substitute(substitutor: TypeSubstitutor) = super.substitute(substitutor) as ConstructorDescriptor
|
override fun substitute(substitutor: TypeSubstitutor) = super.substitute(substitutor) as ConstructorDescriptor
|
||||||
|
|
||||||
|
override fun copy(
|
||||||
|
newOwner: DeclarationDescriptor?, modality: Modality?, visibility: Visibility?, kind: CallableMemberDescriptor.Kind?, copyOverrides: Boolean
|
||||||
|
): AccessorForConstructorDescriptor {
|
||||||
|
throw UnsupportedOperationException("Trying to copy synthetic accessor $this")
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun getOriginal(): AccessorForConstructorDescriptor = this
|
||||||
|
|
||||||
init {
|
init {
|
||||||
initialize(
|
initialize(
|
||||||
DescriptorUtils.getReceiverParameterType(extensionReceiverParameter),
|
DescriptorUtils.getReceiverParameterType(extensionReceiverParameter),
|
||||||
|
|||||||
Reference in New Issue
Block a user