don't veto rename of constructors
#KT-9693 Fixed
This commit is contained in:
@@ -80,6 +80,6 @@ class KotlinRefactoringSupportProvider : RefactoringSupportProvider() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class KotlinVetoRenameCondition: Condition<PsiElement> {
|
class KotlinVetoRenameCondition: Condition<PsiElement> {
|
||||||
override fun value(t: PsiElement?): Boolean = t is KtElement && t is PsiNameIdentifierOwner && t.nameIdentifier == null
|
override fun value(t: PsiElement?): Boolean =
|
||||||
|
t is KtElement && t is PsiNameIdentifierOwner && t.nameIdentifier == null && t !is KtConstructor<*>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user