Skip to content

Commit

Permalink
Fix more things.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Dec 22, 2024
1 parent 845e340 commit 6d541a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions tests/issue1783.fut
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
-- ==
-- error: cannot match
-- error: constructor arguments

type surface = #asphere {curvature: f64}
| #sphere {curvature: f64}
type surface =
#asphere {curvature: f64}
| #sphere {curvature: f64}

entry sag (surf: surface) : f64 =
match surf
Expand Down
2 changes: 1 addition & 1 deletion tests/records-error4.fut
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- A record value must not have more fields than its corresponding
-- type.
-- ==
-- error: Unshared fields
-- error: unshared fields

def main () =
let r: {a: i32} = {a = 0, b = 0}
Expand Down
2 changes: 1 addition & 1 deletion tests/records-error7.fut
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- Specific error message on record field mismatches.
-- ==
-- error: Unshared fields: c, d.
-- error: unshared fields: c, d.

def f (v: {a: i32, b: i32, c: i32}) : {a: i32, b: i32, d: i32} = v

0 comments on commit 6d541a0

Please sign in to comment.