summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/rn020.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rename/should_compile/rn020.hs')
-rw-r--r--testsuite/tests/rename/should_compile/rn020.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_compile/rn020.hs b/testsuite/tests/rename/should_compile/rn020.hs
new file mode 100644
index 0000000000..5485d7cb51
--- /dev/null
+++ b/testsuite/tests/rename/should_compile/rn020.hs
@@ -0,0 +1,11 @@
+-- !!! Duplicate fields in record decls
+
+module OK where
+
+data X = A {a :: Int} | B {a :: Int}
+
+f x = x
+
+-- data Y = V {a :: Int}
+
+-- f y = y