Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Oct 1, 2024
1 parent 3899c9b commit 9e47481
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/Typecheck/NegativeNew.hs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ arityTests =
$ \case
ErrExpectedFunctionType {} -> Nothing
_ -> wrongError,
negTest
"Implicit name argument without name"
$(mkRelDir "Internal")
$(mkRelFile "issue3074.juvix")
$ \case
ErrUnsolvedMeta {} -> Nothing
_ -> wrongError,
negArityTest
"Expected explicit pattern"
$(mkRelDir "Internal")
Expand Down
7 changes: 7 additions & 0 deletions tests/negative/Internal/issue3074.juvix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module issue3074;

type T := mkT;

fun {_ : T} : {A : Type} -> T := mkT;

x : T := fun@{A := T};

0 comments on commit 9e47481

Please sign in to comment.