Supported "is" in when entry condition

This commit is contained in:
Valentin Kipyatkov
2016-08-25 22:59:07 +03:00
parent ecb1910bf2
commit 7687c1646b
3 changed files with 19 additions and 0 deletions
@@ -238,6 +238,12 @@ private class Processor(
return true
}
is KtWhenConditionIsPattern -> {
//TODO: smart cast is possible outside of when or inside other branches!
usePlainSearch(typeRefParent.parent as KtWhenEntry)
return true
}
is KtBinaryExpressionWithTypeRHS -> {
processSuspiciousExpression(typeRefParent)
return true