handle multi-declarations in "show expression type"

This commit is contained in:
Dmitry Jemerov
2016-08-25 20:58:07 +02:00
parent fbd2c48fbd
commit 032d50bbbf
6 changed files with 67 additions and 4 deletions
@@ -33,8 +33,8 @@ class KotlinExpressionTypeProvider : ExpressionTypeProvider<KtExpression>() {
private fun KtExpression.shouldShowType() = when(this) {
is KtFunction -> !hasBlockBody() && !hasDeclaredReturnType()
is KtProperty -> true
is KtStatementExpression -> false
is KtProperty, is KtDestructuringDeclarationEntry -> true
is KtStatementExpression, is KtDestructuringDeclaration -> false
else -> true
}