Rename: Fix in-place rename on non-overriding functions

This commit is contained in:
Alexey Sedunov
2016-10-12 12:56:40 +03:00
parent c6c65b1a20
commit 3eb5076a7c
@@ -143,7 +143,7 @@ class RenameKotlinFunctionProcessor : RenameKotlinPsiProcessor() {
val deepestSuperMethods = wrappedMethod.findDeepestSuperMethods() val deepestSuperMethods = wrappedMethod.findDeepestSuperMethods()
when { when {
deepestSuperMethods.isEmpty() -> return deepestSuperMethods.isEmpty() -> preprocessAndPass(element)
wrappedMethod.isConstructor || element !is KtNamedFunction -> { wrappedMethod.isConstructor || element !is KtNamedFunction -> {
javaMethodProcessorInstance.substituteElementToRename(wrappedMethod, editor, Pass(::preprocessAndPass)) javaMethodProcessorInstance.substituteElementToRename(wrappedMethod, editor, Pass(::preprocessAndPass))
} }