Classified usages in "is" of when entry correctly.

#KT-7047 fixed
This commit is contained in:
Evgeny Gerashchenko
2015-03-19 22:09:06 +03:00
parent f7883fb1df
commit e752dd0a80
3 changed files with 8 additions and 3 deletions
@@ -103,7 +103,8 @@ public object UsageTypeUtils {
refExpr.getParentOfTypeAndBranch<JetParameter>(){ getTypeReference() } != null ->
VALUE_PARAMETER_TYPE
refExpr.getParentOfTypeAndBranch<JetIsExpression>(){ getTypeReference() } != null ->
refExpr.getParentOfTypeAndBranch<JetIsExpression>(){ getTypeReference() } != null
|| refExpr.getParentOfTypeAndBranch<JetWhenConditionIsPattern>(){ getTypeReference() } != null ->
IS
with(refExpr.getParentOfTypeAndBranch<JetBinaryExpressionWithTypeRHS>(){ getRight() }) {