summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/T2914.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rename/should_compile/T2914.hs')
-rw-r--r--testsuite/tests/rename/should_compile/T2914.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_compile/T2914.hs b/testsuite/tests/rename/should_compile/T2914.hs
new file mode 100644
index 0000000000..788efef59d
--- /dev/null
+++ b/testsuite/tests/rename/should_compile/T2914.hs
@@ -0,0 +1,14 @@
+{-# LANGUAGE TypeFamilies, RecordWildCards #-}
+module AssocWildCards where
+
+class FooClass a where
+ data FooType a
+
+instance FooClass Int where
+ data FooType Int = FooInt { fooIntVal :: Int }
+
+fooInt :: Int -> FooType Int
+fooInt fooIntVal = FooInt{..}
+
+fromFooInt :: FooType Int -> Int
+fromFooInt (FooInt{..}) = fooIntVal