Fix USELESS_IS_CHECK warnings in compiler code

This commit is contained in:
Dmitriy Novozhilov
2021-07-12 10:27:49 +03:00
committed by teamcityserver
parent 968f823b72
commit f33f3c769f
10 changed files with 11 additions and 28 deletions
@@ -264,7 +264,6 @@ class PatternMatchingTypingVisitor internal constructor(facade: ExpressionTyping
)
} else {
val illegalDeclarationString = when {
subjectVariable is KtDestructuringDeclaration -> "destructuring declaration"
subjectVariable.isVar -> "var"
subjectVariable.initializer == null -> "variable without initializer"
subjectVariable.hasDelegateExpression() -> "delegated property"