Type checking in switch case condition.

This commit is contained in:
Stephen Chung
2022-04-19 21:45:11 +08:00
parent 770b2e04cc
commit 299d6ef308
3 changed files with 10 additions and 2 deletions

View File

@@ -122,7 +122,9 @@ impl fmt::Debug for OpAssignment<'_> {
}
}
/// A statements block with an optional condition.
/// A statements block with a condition.
///
/// The condition may simply be [`Expr::BoolConstant`] with `true` if there is actually no condition.
#[derive(Debug, Clone, Hash)]
pub struct ConditionalStmtBlock {
/// Condition.