summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/rn059.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rename/should_compile/rn059.hs')
-rw-r--r--testsuite/tests/rename/should_compile/rn059.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_compile/rn059.hs b/testsuite/tests/rename/should_compile/rn059.hs
new file mode 100644
index 0000000000..e46c666433
--- /dev/null
+++ b/testsuite/tests/rename/should_compile/rn059.hs
@@ -0,0 +1,13 @@
+{-# OPTIONS_GHC -XDisambiguateRecordFields #-}
+
+module Foo () where
+
+import Rn059_A
+import Rn059_B
+
+a = A { label = 'a' }
+
+b = B { label = 'b' }
+
+f (A { label = a }) (B { label = b }) = (a,b)
+