Partial body resolve: added a test to fail if smart-casts will become too clever
This commit is contained in:
@@ -175,7 +175,6 @@ class PartialBodyResolveFilter(elementToResolve: JetElement, private val body: J
|
||||
override fun visitWhileExpression(expression: JetWhileExpression) {
|
||||
val condition = expression.getCondition()
|
||||
// we need to enter the body only for "while(true)"
|
||||
//TODO: what about e.g. "1 == 1"
|
||||
if (condition.isTrueConstant()) {
|
||||
expression.acceptChildren(this)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user