Minor. Removed redundant field for several anonymous objects.

This commit is contained in:
Stanislav Erokhin
2016-05-20 10:36:05 +03:00
parent b5355358a5
commit a42b8d56b4
3 changed files with 3 additions and 3 deletions
@@ -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 }
@@ -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)