Create from Usage: Implement "Create type alias" quickfix
#KT-12904 Fixed
This commit is contained in:
@@ -119,7 +119,7 @@ class NewDeclarationNameValidator(
|
||||
if (this is KtCallableDeclaration && receiverTypeReference != null) return false
|
||||
return when(target) {
|
||||
Target.VARIABLES -> this is KtVariableDeclaration
|
||||
Target.FUNCTIONS_AND_CLASSES -> this is KtNamedFunction || this is KtClassOrObject
|
||||
Target.FUNCTIONS_AND_CLASSES -> this is KtNamedFunction || this is KtClassOrObject || this is KtTypeAlias
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user