mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-20 15:27:45 +03:00
test: add a test to contrain if expr
This commit is contained in:
parent
6f9e64f2ea
commit
4739b5db91
@ -274,3 +274,15 @@ fn constrain_access() {
|
||||
"Str",
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn constrain_if() {
|
||||
infer_eq(
|
||||
indoc!(
|
||||
r#"
|
||||
if True then Green else Red
|
||||
"#
|
||||
),
|
||||
"[ Green, Red ]*",
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user