[FIR] Fix checking for boolean exhaustiveness with || in branch

This commit is contained in:
Dmitriy Novozhilov
2021-02-04 15:17:46 +03:00
parent 6469900b5e
commit 76f9830b47
@@ -232,5 +232,11 @@ class FirWhenExhaustivenessTransformer(private val bodyResolveComponents: BodyRe
}
}
}
override fun visitBinaryLogicExpression(binaryLogicExpression: FirBinaryLogicExpression, data: BooleanExhaustivenessFlags) {
if (binaryLogicExpression.kind == LogicOperationKind.OR) {
binaryLogicExpression.acceptChildren(this, data)
}
}
}
}