diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2014-06-05 12:26:24 +0100 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2014-06-23 04:03:56 -0500 |
commit | f6e494231b2ad00fa073fc6623a876ffe40e900e (patch) | |
tree | 276d91e5536ff2689c25abbba490db3076ebef25 | |
parent | d1c2a2784ffc120bdd8f1fccc9cc61933c0cc5d0 (diff) | |
download | haskell-f6e494231b2ad00fa073fc6623a876ffe40e900e.tar.gz |
Test Trac #9023
(cherry picked from commit 1b45c6b4959762209dbcabf3290feb8673a60b23)
-rw-r--r-- | testsuite/tests/patsyn/should_compile/T9023.hs | 6 | ||||
-rw-r--r-- | testsuite/tests/patsyn/should_compile/all.T | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/patsyn/should_compile/T9023.hs b/testsuite/tests/patsyn/should_compile/T9023.hs new file mode 100644 index 0000000000..3a8614009f --- /dev/null +++ b/testsuite/tests/patsyn/should_compile/T9023.hs @@ -0,0 +1,6 @@ +{-# LANGUAGE PatternSynonyms #-} + +module T9023 where + +pattern P a b = Just (a, b) +foo P{} = True diff --git a/testsuite/tests/patsyn/should_compile/all.T b/testsuite/tests/patsyn/should_compile/all.T index ecc4701661..d851bc3ac8 100644 --- a/testsuite/tests/patsyn/should_compile/all.T +++ b/testsuite/tests/patsyn/should_compile/all.T @@ -9,3 +9,4 @@ test('num', normal, compile, ['']) test('incomplete', normal, compile, ['']) test('export', normal, compile, ['']) test('T8966', normal, compile, ['']) +test('T9023', normal, compile, ['']) |