Skip to content

Commit 6167f5b

Browse files
committed
Test that incorrectly annotated patterns give errors
1 parent 23c5b81 commit 6167f5b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

regression.1ml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ typparams_allowed (id 'a: a => a) ({alsoId 'x: x => x}) =
3939

4040
;;
4141

42+
type_error {
43+
inconsistent_empty_and_annpat ({}: int) = ();
44+
};
45+
46+
type_error {
47+
inconsistent_nested_annpats ((x: int): text) = ();
48+
};
49+
50+
;;
51+
4252
type_error { type_error 101 };
4353

4454
;;

0 commit comments

Comments
 (0)