KT-12628: !! is now correctly added to array expressions

(cherry picked from commit 56c9d7e)
This commit is contained in:
Mikhail Glukhikh
2016-07-27 17:52:48 +03:00
committed by Mikhail Glukhikh
parent 47493c1a65
commit a9c30e878b
6 changed files with 31 additions and 0 deletions
@@ -95,6 +95,9 @@ class AddExclExclCallFix(val psiElement: PsiElement) : ExclExclCallFix() {
return sibling
}
}
else if (psiElement is KtArrayAccessExpression) {
return psiElement.arrayExpression
}
else if (psiElement is KtExpression) {
return psiElement
}