diff --git a/editor/tests/solve_expr2.rs b/editor/tests/solve_expr2.rs index 374afd6590..465bb6511b 100644 --- a/editor/tests/solve_expr2.rs +++ b/editor/tests/solve_expr2.rs @@ -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 }*", + ) +}