[LL API] Avoid traversing the same smart cast expression twice

This commit is contained in:
Yan Zhulanow
2023-08-01 20:26:27 +09:00
committed by Space Team
parent 8440cbf939
commit 24a1913559
@@ -380,6 +380,7 @@ private class ContextCollectorVisitor(
try {
smartCasts = smartCasts.put(symbol, smartCastExpression.typesFromSmartCast.toSet())
super.visitSmartCastExpression(smartCastExpression)
return
} finally {
smartCasts = previousSmartCasts
}