Add a test for extensible records

This commit is contained in:
Sam Vervaeck 2023-03-19 17:03:30 +01:00
parent 1b918dcaf0
commit 5c8a296cab

View file

@ -195,3 +195,15 @@ mod CD.
let alpha: A.Foo
```
## Rest-expressions on extensible records work
```
struct Point.
x: Int
y: Int
z: Int
let foo { x, y, .. } : Point -> Int = x + y
foo { x = 1, y = 2 }
```