diff options
author | Adam Chlipala <adam@chlipala.net> | 2018-05-20 19:28:17 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2018-05-20 19:28:17 -0400 |
commit | 3e8fc5122fed2baee3a4d27d51575f6dd5174ea8 (patch) | |
tree | 64a5e2411cc1a2d2d3b31ca62c5ca605daa5dd74 /tests | |
parent | 077666b77bf21054e1e1f67ba61dfbaf57525378 (diff) |
Proper error message when the body of a 'val' declaration fails to check against the type annotation
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pairUnify.ur | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pairUnify.ur b/tests/pairUnify.ur new file mode 100644 index 00000000..1c9f9759 --- /dev/null +++ b/tests/pairUnify.ur @@ -0,0 +1,6 @@ +datatype a = A +datatype b = B + +val x : a * b = (A, B) + +val y : b = x |