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 317af4a commit 165f748
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/Typecheck/Negative.hs
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,13 @@ tests =
$(mkRelFile "Main.juvix")
$ \case
ErrWrongType {} -> Nothing
_ -> wrongError,
negTest
"Implicit name argument without name"
$(mkRelDir "Internal")
$(mkRelFile "issue3074.juvix")
$ \case
ErrUnsolvedMeta {} -> Nothing
_ -> wrongError
]

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 165f748

Please sign in to comment.