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:
Ayaz Hafiz 2023-01-12 10:48:09 -06:00 committed by Folkert
parent 61ac9bf9b2
commit b8712bcb30
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
9 changed files with 70 additions and 75 deletions

View file

@ -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"