mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
test: constrain update
This commit is contained in:
parent
997ab6094a
commit
1f467ec62b
1 changed files with 14 additions and 0 deletions
|
@ -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 }*",
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue