[NI] Fix determining type equality in replacing of extension receiver

This commit is contained in:
Dmitriy Novozhilov
2019-04-19 13:48:07 +03:00
parent 0739d13038
commit f9cc3d9be3
2 changed files with 2 additions and 6 deletions
@@ -54,9 +54,6 @@ public class ExtensionReceiver extends AbstractReceiverValue implements Implicit
@NotNull
@Override
public ReceiverValue replaceType(@NotNull KotlinType newType) {
if (NewKotlinTypeChecker.INSTANCE.equalTypes(receiverType, newType)) {
return this;
}
return new ExtensionReceiver(descriptor, newType, getOriginal());
}