Make project compilable after member scope refinement

This commit is contained in:
Denis Zharkov
2015-12-22 07:59:04 +03:00
parent ec0ec55ab5
commit b6edddbe8b
2 changed files with 2 additions and 2 deletions
@@ -29,7 +29,7 @@ public fun <T> Collection<T>?.concat(collection: Collection<T>): Collection<T>?
if (this == null) {
return collection
}
if (this is LinkedHashSet<*>) {
if (this is LinkedHashSet) {
addAll(collection)
return this
}
@@ -282,7 +282,7 @@ public class MoveKotlinTopLevelDeclarationsProcessor(
override fun computeHashCode(e: PsiElement?): Int {
return when (e) {
null -> 0
is KtLightElement<*, *> -> e.getOrigin().hashCode() * 31 + (e.name?.hashCode() ?: 0)
is KtLightElement<*, *> -> (e.getOrigin()?.hashCode() ?: 0) * 31 + (e.name?.hashCode() ?: 0)
else -> e.hashCode()
}
}