Fix local delegated property smartcast usage
This commit is contained in:
@@ -182,10 +182,10 @@ fun KtElement.processInternalReferencesToUpdateOnPackageNameChange(
|
||||
val isImported = isImported(descriptor)
|
||||
if (isImported && this is KtFile) return null
|
||||
|
||||
if (declaration == null) return null
|
||||
val declarationNotNull = declaration ?: return null
|
||||
|
||||
if (isExtension || containerFqName != null || isImported) return {
|
||||
createMoveUsageInfoIfPossible(it.mainReference, declaration, false, true)
|
||||
createMoveUsageInfoIfPossible(it.mainReference, declarationNotNull, false, true)
|
||||
}
|
||||
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user