Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed May 4, 2023
1 parent 8ae1d3a commit e55357e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/Typecheck/Positive.hs
Expand Up @@ -202,6 +202,10 @@ tests =
"Mutual inference inside let"
$(mkRelDir ".")
$(mkRelFile "MutualLet.juvix"),
posTest
"id application in type"
$(mkRelDir ".")
$(mkRelFile "IdInType.juvix"),
posTest
"Nested pattern match with type variables"
$(mkRelDir ".")
Expand Down
10 changes: 10 additions & 0 deletions tests/positive/IdInType.juvix
@@ -0,0 +1,10 @@
module IdInType;

type Unit :=
| unit : Unit;

id : {a : Type} -> a -> a;
id a := a;

f : id Unit -> Unit;
f _ := unit;

0 comments on commit e55357e

Please sign in to comment.