From d4d98c87ee3c96ad6d8985e047a597b649013111 Mon Sep 17 00:00:00 2001 From: Stanislav Erokhin Date: Wed, 29 Jun 2016 19:33:56 +0300 Subject: [PATCH] Minor. fixed equals for TypeProjection. Note: unclear where this equals is used. --- .../src/org/jetbrains/kotlin/types/TypeProjectionBase.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/descriptors/src/org/jetbrains/kotlin/types/TypeProjectionBase.java b/core/descriptors/src/org/jetbrains/kotlin/types/TypeProjectionBase.java index fd1efbda24f..b6a84fe6494 100644 --- a/core/descriptors/src/org/jetbrains/kotlin/types/TypeProjectionBase.java +++ b/core/descriptors/src/org/jetbrains/kotlin/types/TypeProjectionBase.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2015 JetBrains s.r.o. + * Copyright 2010-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ public abstract class TypeProjectionBase implements TypeProjection { TypeProjection that = (TypeProjection) o; + if (isStarProjection() != that.isStarProjection()) return false; if (getProjectionKind() != that.getProjectionKind()) return false; if (!getType().equals(that.getType())) return false;