Test Trac #9023
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 5 Jun 2014 11:26:24 +0000 (12:26 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Thu, 5 Jun 2014 11:26:24 +0000 (12:26 +0100)
testsuite/tests/patsyn/should_compile/T9023.hs [new file with mode: 0644]
testsuite/tests/patsyn/should_compile/all.T

diff --git a/testsuite/tests/patsyn/should_compile/T9023.hs b/testsuite/tests/patsyn/should_compile/T9023.hs
new file mode 100644 (file)
index 0000000..3a86140
--- /dev/null
@@ -0,0 +1,6 @@
+{-# LANGUAGE PatternSynonyms #-}
+
+module T9023 where
+
+pattern P a b = Just (a, b)
+foo P{} = True
index ecc4701..d851bc3 100644 (file)
@@ -9,3 +9,4 @@ test('num', normal, compile, [''])
 test('incomplete', normal, compile, [''])
 test('export', normal, compile, [''])
 test('T8966', normal, compile, [''])
+test('T9023', normal, compile, [''])