Skip to content

Commit

Permalink
Printinf on snapshot and errors has breakline
Browse files Browse the repository at this point in the history
  • Loading branch information
davesnx committed Nov 25, 2024
1 parent 9049b39 commit 55071e6
Showing 1 changed file with 3 additions and 3 deletions.
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]

0 comments on commit 55071e6

Please sign in to comment.