Skip to content

Commit

Permalink
Merge branch 'main' into anmonteiro/rm-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro authored Aug 12, 2023
2 parents 1399d90 + bf46a13 commit 55e493b
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 11 deletions.
20 changes: 10 additions & 10 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions test/blackbox-tests/uncurry-errors.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@


$ . ./setup.sh

$ cat > x.ml <<EOF
> let x = fun [@u] a -> Js.log a
> let () = x 42
> EOF

$ melc -ppx melppx x.ml
File "x.ml", line 2, characters 9-10:
2 | let () = x 42
^
Error: This function is uncurried; it needs to be applied in uncurried style
[2]

$ cat > x.ml <<EOF
> let y (a : (int -> int[@u])) = Js.log (a 42 [@u])
> let () = y (fun x -> x + 1)
> EOF

$ melc -ppx melppx x.ml
File "x.ml", line 2, characters 11-27:
2 | let () = y (fun x -> x + 1)
^^^^^^^^^^^^^^^^
Error: This expression is expected to have an uncurried function
[2]

2 changes: 1 addition & 1 deletion vendor/melange-compiler-libs

0 comments on commit 55e493b

Please sign in to comment.