summaryrefslogtreecommitdiff
path: root/testsuite/tests/deSugar/should_compile/ds048.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deSugar/should_compile/ds048.hs')
-rw-r--r--testsuite/tests/deSugar/should_compile/ds048.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/deSugar/should_compile/ds048.hs b/testsuite/tests/deSugar/should_compile/ds048.hs
new file mode 100644
index 0000000000..9274aacbea
--- /dev/null
+++ b/testsuite/tests/deSugar/should_compile/ds048.hs
@@ -0,0 +1,7 @@
+-- !!! newtypes with a labelled field.
+module ShouldCompile where
+
+newtype Foo = Foo { x :: Int } deriving (Eq)
+
+f :: Foo -> Foo -> Int
+f a b = x a + x b