Skip to content

Commit

Permalink
Test that incorrectly annotated patterns give errors
Browse files Browse the repository at this point in the history
  • Loading branch information
polytypic committed Feb 28, 2020
1 parent 23c5b81 commit 6167f5b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions regression.1ml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ typparams_allowed (id 'a: a => a) ({alsoId 'x: x => x}) =

;;

type_error {
inconsistent_empty_and_annpat ({}: int) = ();
};

type_error {
inconsistent_nested_annpats ((x: int): text) = ();
};

;;

type_error { type_error 101 };

;;
Expand Down

0 comments on commit 6167f5b

Please sign in to comment.