Supported usage in super type list without parenthesis

This commit is contained in:
Valentin Kipyatkov
2016-08-29 00:03:52 +03:00
parent 5c1e42aa51
commit 8bfc746f4b
5 changed files with 16 additions and 8 deletions
@@ -390,6 +390,13 @@ private class Processor(
}
}
is KtSuperTypeListEntry -> {
if (typeRef == typeRefParent.typeReference) {
// usage in super type list - just ignore, inheritors are processed above
return true
}
}
is KtIsExpression -> {
val scopeOfPossibleSmartCast = typeRefParent.getParentOfType<KtDeclarationWithBody>(true)
scopeOfPossibleSmartCast?.let { usePlainSearch(it) }