mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
move record index to start of update
This commit is contained in:
parent
9b58c0fb9c
commit
378a298b45
6 changed files with 291 additions and 106 deletions
|
@ -3013,3 +3013,17 @@ fn rb_tree_fbip() {
|
|||
"#
|
||||
)
|
||||
}
|
||||
|
||||
#[mono_test]
|
||||
fn record_update() {
|
||||
indoc!(
|
||||
r#"
|
||||
app "test" provides [main] to "./platform"
|
||||
|
||||
main = f {a: [], b: [], c:[]}
|
||||
|
||||
f : {a: List Nat, b: List Nat, c: List Nat} -> {a: List Nat, b: List Nat, c: List Nat}
|
||||
f = \record -> {record & a: List.set record.a 7 7, b: List.set record.b 8 8}
|
||||
"#
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue