summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/T6038.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rename/should_compile/T6038.hs')
-rw-r--r--testsuite/tests/rename/should_compile/T6038.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_compile/T6038.hs b/testsuite/tests/rename/should_compile/T6038.hs
new file mode 100644
index 0000000000..8478cd51b3
--- /dev/null
+++ b/testsuite/tests/rename/should_compile/T6038.hs
@@ -0,0 +1,7 @@
+{-# LANGUAGE ViewPatterns, BangPatterns #-}
+
+module T6038 where
+
+data T = MkT { x,y :: Int }
+
+f (MkT { x = !v, y = negate -> w }) = v + w