Add a test for extensible records
This commit is contained in:
parent
1b918dcaf0
commit
5c8a296cab
1 changed files with 12 additions and 0 deletions
|
@ -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 }
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue