From 1a0edd37ef3560c3447e45c9889c3f9574c36cca Mon Sep 17 00:00:00 2001 From: Roman Golyshev Date: Tue, 13 Aug 2019 12:31:51 +0300 Subject: [PATCH] KT-31295: fix issue with `NewKotlinScriptAction` incorrect identity - this problem leads to the duplication of the `New Kotlin Script` action in the drop-down menu - ^KT-31295 Fixed --- .../org/jetbrains/kotlin/idea/actions/NewKotlinScriptAction.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/src/org/jetbrains/kotlin/idea/actions/NewKotlinScriptAction.kt b/idea/src/org/jetbrains/kotlin/idea/actions/NewKotlinScriptAction.kt index bf4c94d9408..648b5d32164 100644 --- a/idea/src/org/jetbrains/kotlin/idea/actions/NewKotlinScriptAction.kt +++ b/idea/src/org/jetbrains/kotlin/idea/actions/NewKotlinScriptAction.kt @@ -58,5 +58,5 @@ open class NewKotlinScriptAction( override fun hashCode(): Int = 0 - override fun equals(other: Any?): Boolean = this::class.isInstance(other) + override fun equals(other: Any?): Boolean = this::class == other?.let { it::class } } \ No newline at end of file