aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/tcrec.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-10-15 10:19:50 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2011-10-15 10:19:50 -0400
commit8a2f6e7bf923bc145cb85a5ed5cc34daa0f7d664 (patch)
tree5bd132fb29536e887593ea8d3f7baae3319e6e5b /tests/tcrec.ur
parentf1f76981bdc16abe27a76303520d78dc9df4e460 (diff)
Improved unification of record literals in type class resolution
Diffstat (limited to 'tests/tcrec.ur')
-rw-r--r--tests/tcrec.ur5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/tcrec.ur b/tests/tcrec.ur
new file mode 100644
index 00000000..3d3e6e64
--- /dev/null
+++ b/tests/tcrec.ur
@@ -0,0 +1,5 @@
+type r1 = {A : string, B : string}
+type r2 = {B : string, A : string}
+
+val show_r1 : show r1 = mkShow (fn r => r.A ^ "+" ^ r.B)
+val show_r2 : show r2 = _