mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Weaken records in let-bindings
This change also means we must update the interface of `Dict.empty` and `Set.empty` from ``` Dict.empty : Dict k v ``` to ``` Dict.empty : {} -> Dict k v ```
This commit is contained in:
parent
61ac9bf9b2
commit
b8712bcb30
9 changed files with 70 additions and 75 deletions
|
@ -385,7 +385,7 @@ fn when_on_two_values() {
|
|||
#[mono_test]
|
||||
fn dict() {
|
||||
r#"
|
||||
Dict.len Dict.empty
|
||||
Dict.len (Dict.empty {})
|
||||
"#
|
||||
}
|
||||
|
||||
|
@ -1273,7 +1273,7 @@ fn aliased_polymorphic_closure() {
|
|||
}
|
||||
|
||||
#[mono_test]
|
||||
fn issue_2535_polymorphic_fields_referenced_in_list() {
|
||||
fn issue_2535_let_weakened_fields_referenced_in_list() {
|
||||
indoc!(
|
||||
r#"
|
||||
app "test" provides [nums] to "./platform"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue