Minor: cleanup, use PropertyDescriptorImpl.initialize(...)
This commit is contained in:
-4
@@ -19,11 +19,7 @@ package org.jetbrains.kotlin.backend.jvm.descriptors
|
||||
import org.jetbrains.kotlin.descriptors.*
|
||||
import org.jetbrains.kotlin.descriptors.annotations.Annotations
|
||||
import org.jetbrains.kotlin.name.Name
|
||||
import org.jetbrains.kotlin.resolve.descriptorUtil.builtIns
|
||||
import org.jetbrains.kotlin.resolve.descriptorUtil.fqNameUnsafe
|
||||
import org.jetbrains.kotlin.resolve.descriptorUtil.module
|
||||
import org.jetbrains.kotlin.resolve.scopes.MemberScope
|
||||
import org.jetbrains.kotlin.types.*
|
||||
|
||||
interface DefaultImplsClassDescriptor : ClassDescriptor {
|
||||
val correspondingInterface: ClassDescriptor
|
||||
|
||||
+1
-6
@@ -69,11 +69,6 @@ class JvmPropertyDescriptorImpl(
|
||||
JvmPropertyDescriptorImpl(
|
||||
containingDeclaration, null, annotations, modality, visibility, extraFlags, false, name,
|
||||
CallableMemberDescriptor.Kind.SYNTHESIZED, source, false, false
|
||||
).setTypeNoReceivers(type)
|
||||
|
||||
private fun PropertyDescriptorImpl.setTypeNoReceivers(type: KotlinType): PropertyDescriptorImpl {
|
||||
setType(type, emptyList(), null as ReceiverParameterDescriptor?, null as ReceiverParameterDescriptor?)
|
||||
return this
|
||||
}
|
||||
).initialize(type)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user