Skip to content

Commit

Permalink
negative test
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Nov 20, 2024
1 parent e83d265 commit 2e14594
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/Scope/Negative.hs
Original file line number Diff line number Diff line change
Expand Up @@ -298,5 +298,10 @@ scoperErrorTests =
"Import cycles (issue3161)"
$(mkRelDir "issue3161")
$(mkRelFile "Stdlib/Trait/Partial.juvix")
$ wantsError ErrImportCycleNew
$ wantsError ErrImportCycleNew,
negTest
"Deriving statement wrong form"
$(mkRelDir ".")
$(mkRelFile "WrongDeriving.juvix")
$ wantsError ErrDerivingTypeWrongForm
]
5 changes: 5 additions & 0 deletions tests/negative/WrongDeriving.juvix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module WrongDeriving;

axiom A : Type;

deriving instance i : A;

0 comments on commit 2e14594

Please sign in to comment.