Skip to content

Commit cb0ffda

Browse files
committed
Add a test illustrating issue #1913
1 parent d5503a9 commit cb0ffda

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Found in issue #1913
2+
3+
$ cat >test.ml <<EOF
4+
> type _ plus = | Zero : 'm plus | Suc : 'm plus -> 'm plus
5+
> type _ has_plus = Plus : 'm plus -> unit has_plus;;
6+
> let (Plus (type mn3) (ed : mn3 plus) ) = Plus (Suc Zero) in ed + 2
7+
> EOF
8+
9+
$ $MERLIN single errors -short-paths -filename test.ml < test.ml
10+
{
11+
"class": "failure",
12+
"value": "Graph.add: type already defined: mn3/281[4]",
13+
"notifications": []
14+
}

0 commit comments

Comments
 (0)