mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Remove inaccurate debug assertion in IR gen
There might be more symbols than field layouts when restructuring a record if the record is a newtype. Closes #4759
This commit is contained in:
parent
6de36f29f9
commit
2a9e0583bc
3 changed files with 27 additions and 3 deletions
|
@ -2845,3 +2845,17 @@ fn compose_recursive_lambda_set_productive_nullable_wrapped() {
|
|||
"#
|
||||
)
|
||||
}
|
||||
|
||||
#[mono_test]
|
||||
fn issue_4759() {
|
||||
indoc!(
|
||||
r#"
|
||||
app "test" provides [main] to "./platform"
|
||||
|
||||
main =
|
||||
update { a : { x : "x", y: "y" } }
|
||||
|
||||
update = \state -> { state & a : { x : "ux", y: "uy" } }
|
||||
"#
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue