Skip to content

Commit

Permalink
test [@drop_default] without [@option]
Browse files Browse the repository at this point in the history
  • Loading branch information
andreypopp committed Sep 7, 2024
1 parent 28f7989 commit 0870701
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ppx/test/ppx_deriving_json_js_errors.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@


$ echo 'type t = { a: int option; [@drop_default] } [@@deriving json]' | ../browser/ppx_deriving_json_js_test.exe -impl -
Fatal error: exception Ppx_deriving_json_js__Ppx_deriving_tools.Error(_, "found [@drop_default] attribute without [@option]")
[2]

6 changes: 6 additions & 0 deletions ppx/test/ppx_deriving_json_native_errors.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@


$ echo 'type t = { a: int option; [@drop_default] } [@@deriving json]' | ../native/ppx_deriving_json_native_test.exe -impl -
Fatal error: exception Ppx_deriving_json_native__Ppx_deriving_tools.Error(_, "found [@drop_default] attribute without [@option]")
[2]

0 comments on commit 0870701

Please sign in to comment.