test: add a test to contrain if expr

This commit is contained in:
rvcas 2021-05-28 12:57:45 -04:00
parent 6f9e64f2ea
commit 4739b5db91

View File

@ -274,3 +274,15 @@ fn constrain_access() {
"Str",
)
}
#[test]
fn constrain_if() {
infer_eq(
indoc!(
r#"
if True then Green else Red
"#
),
"[ Green, Red ]*",
)
}