-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into anmonteiro/rm-deps
- Loading branch information
Showing
3 changed files
with
39 additions
and
11 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
|