Skip to content

Commit

Permalink
Modify singleton labeled tuple elaboration
Browse files Browse the repository at this point in the history
  • Loading branch information
7h3kk1d committed Oct 11, 2024
1 parent 318cfb3 commit c8ef191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Test_Elaboration.re
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ let singleton_labeled_tuple = () =>

let singleton_labeled_tuple_elaborates_labels = () =>
alco_check(
"Labeled Tuple label introduction",
"let x : (l=String) = \"a\" in x",
Let(
Var("x") |> Pat.fresh,
Tuple([
Expand All @@ -327,7 +327,7 @@ let singleton_labeled_tuple_elaborates_labels = () =>
Unknown(Internal) |> Typ.fresh,
)
|> Pat.fresh,
Parens(Tuple([String("a") |> Exp.fresh]) |> Exp.fresh) |> Exp.fresh,
Parens(String("a") |> Exp.fresh) |> Exp.fresh, // TODO Should we require parens around singleton tables to ascribe labels
Var("x") |> Exp.fresh,
)
|> Exp.fresh,
Expand Down

0 comments on commit c8ef191

Please sign in to comment.