Check if/else expressions #54

Closed
opened 2026-09-10 22:13:42 +00:00 by jacksonopp · 0 comments
Owner

Type-check Expr::If -- cond must be Bool. When else_branch is present, both branches must agree on their result type, which becomes the if's type; when it's absent, the if's type is Unit, mirroring Expr::Block's trailing-expr-less case.

Type-check Expr::If -- cond must be Bool. When else_branch is present, both branches must agree on their result type, which becomes the if's type; when it's absent, the if's type is Unit, mirroring Expr::Block's trailing-expr-less case.
jacksonopp added this to the twill project 2026-09-10 22:20:49 +00:00
jacksonopp removed this from the twill project 2026-10-04 02:28:22 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jacksonopp/twill#54
No description provided.