Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove raise annotations and fix locations on errors #863

Merged
merged 14 commits into from
Nov 25, 2024
Prev Previous commit
Next Next commit
Printinf on snapshot and errors has breakline
  • Loading branch information
davesnx committed Nov 25, 2024
commit 55071e6ae1109c4aa8995f5710b8290a006ab2ae
6 changes: 3 additions & 3 deletions ppx/test/record-props-error.t/run.t
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Since we generate invalid syntax for the argument of the make fn `(Props : <>)`
We need to output ML syntax here, otherwise refmt could not parse it.
$ ../ppx.sh --output ml input.re
File "output.ml", line 4, characters 27-35:
4 | [@@react.component { no_props = string }]
^^^^^^^^
File "output.ml", line 5, characters 68-76:
5 | no_props
^^^^^^^^
Error: [@react.component] only accepts 'props' as a field, given: no_props
[1]
Loading