test: constrain update

This commit is contained in:
rvcas 2021-06-21 00:19:00 -04:00
parent 997ab6094a
commit 1f467ec62b

View file

@ -300,3 +300,17 @@ fn constrain_when() {
"[ Blue, Purple ]*",
)
}
#[test]
fn constrain_update() {
infer_eq(
indoc!(
r#"
thing = { name: "roc" }
{ thing & name: "bird" }
"#
),
"{ name : Str }*",
)
}