Minor. Rename parameter and get rid of labels

This commit is contained in:
Denis Zharkov
2016-01-25 13:46:25 +03:00
parent c26ca5e7ef
commit 8e3bdd6a0f
@@ -119,13 +119,13 @@ fun KotlinType.computeNewSubstitution(
fun KotlinType.replace(
newArguments: List<TypeProjection>,
annotations: Annotations = this@replace.annotations
newAnnotations: Annotations = annotations
): KotlinType {
if (newArguments.isEmpty() && annotations === this.annotations) return this
if (newArguments.isEmpty() && newAnnotations === annotations) return this
if (newArguments.isEmpty()) {
return KotlinTypeImpl.create(
annotations,
newAnnotations,
constructor,
isMarkedNullable,
arguments,
@@ -144,7 +144,7 @@ fun KotlinType.replace(
else ErrorUtils.createErrorScope("Unexpected declaration descriptor for type constructor: $constructor")
return KotlinTypeImpl.create(
annotations,
newAnnotations,
constructor,
isMarkedNullable,
newArguments,