Minor. Removed redundant field for several anonymous objects.
This commit is contained in:
@@ -90,7 +90,7 @@ fun KotlinType.replaceAnnotations(newAnnotations: Annotations): KotlinType {
|
||||
return object : DelegatingType() {
|
||||
override fun getDelegate() = this@replaceAnnotations
|
||||
|
||||
override val annotations = newAnnotations
|
||||
override val annotations: Annotations get() = newAnnotations
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ class SpecifyTypeExplicitlyIntention : SelfTargetingIntention<KtCallableDeclarat
|
||||
|
||||
object: DelegatingType() {
|
||||
override fun getDelegate() = it
|
||||
override val arguments = newArguments
|
||||
override val arguments: List<TypeProjection> get() = newArguments
|
||||
}
|
||||
}
|
||||
.ifEmpty { return null }
|
||||
|
||||
+1
-1
@@ -67,7 +67,7 @@ private fun KotlinType.render(typeParameterNameMap: Map<TypeParameterDescriptor,
|
||||
|
||||
val wrappingType = object : DelegatingType() {
|
||||
override fun getDelegate(): KotlinType? = typeParameter.defaultType
|
||||
override val constructor = wrappingTypeConstructor
|
||||
override val constructor: TypeConstructor get() = wrappingTypeConstructor
|
||||
}
|
||||
|
||||
TypeProjectionImpl(wrappingType)
|
||||
|
||||
Reference in New Issue
Block a user