Fix record as pattern mono test

This commit is contained in:
Agus Zubiaga 2024-09-02 12:29:14 -03:00
parent e2bd31a549
commit 458878dbea
No known key found for this signature in database
2 changed files with 25 additions and 11 deletions

View file

@ -663,7 +663,7 @@ fn record_as_pattern_in_closure_arg() {
f = \{x, y, w, h} -> (x + w, y + h)
g = \({ x, y } as box) ->
(right, bottom) = g box
(right, bottom) = f box
(x, y, right, bottom)
g { x: 1, y: 2, w: 3, h: 4 }