summaryrefslogtreecommitdiff
path: root/testsuite/tests/overloadedrecflds/should_compile/NFSExport.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/overloadedrecflds/should_compile/NFSExport.hs')
-rw-r--r--testsuite/tests/overloadedrecflds/should_compile/NFSExport.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/overloadedrecflds/should_compile/NFSExport.hs b/testsuite/tests/overloadedrecflds/should_compile/NFSExport.hs
new file mode 100644
index 0000000000..8e83c085bf
--- /dev/null
+++ b/testsuite/tests/overloadedrecflds/should_compile/NFSExport.hs
@@ -0,0 +1,8 @@
+{-# LANGUAGE NoFieldSelectors #-}
+
+module NFSExport (T(foo), def) where
+
+data T = MkT { foo :: Bool }
+
+def :: T
+def = MkT False