mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Add test_gen tests for early returns
This commit is contained in:
parent
ca762127e5
commit
8a0cc10c93
3 changed files with 118 additions and 2 deletions
|
@ -918,7 +918,8 @@ fn to_expr_report<'b>(
|
|||
alloc.reflow("But I need every "),
|
||||
alloc.keyword("expect"),
|
||||
alloc.reflow(" condition to evaluate to a "),
|
||||
alloc.reflow("Bool—either "),
|
||||
alloc.type_str("Bool"),
|
||||
alloc.reflow("—either "),
|
||||
alloc.tag("Bool.true".into()),
|
||||
alloc.reflow(" or "),
|
||||
alloc.tag("Bool.false".into()),
|
||||
|
@ -957,7 +958,8 @@ fn to_expr_report<'b>(
|
|||
alloc.reflow("But I need every "),
|
||||
alloc.keyword("if"),
|
||||
alloc.reflow(" condition to evaluate to a "),
|
||||
alloc.reflow("Bool—either "),
|
||||
alloc.type_str("Bool"),
|
||||
alloc.reflow("—either "),
|
||||
alloc.tag("Bool.true".into()),
|
||||
alloc.reflow(" or "),
|
||||
alloc.tag("Bool.false".into()),
|
||||
|
@ -995,6 +997,7 @@ fn to_expr_report<'b>(
|
|||
alloc.reflow("But I need every "),
|
||||
alloc.keyword("if"),
|
||||
alloc.reflow(" guard condition to evaluate to a "),
|
||||
alloc.type_str("Bool"),
|
||||
alloc.reflow("—either "),
|
||||
alloc.tag("Bool.true".into()),
|
||||
alloc.reflow(" or "),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue