diff options
Diffstat (limited to 'testsuite/tests/patsyn/should_compile/T22521.hs')
-rw-r--r-- | testsuite/tests/patsyn/should_compile/T22521.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/patsyn/should_compile/T22521.hs b/testsuite/tests/patsyn/should_compile/T22521.hs new file mode 100644 index 0000000000..0fbac4f49e --- /dev/null +++ b/testsuite/tests/patsyn/should_compile/T22521.hs @@ -0,0 +1,9 @@ +{-# LANGUAGE PatternSynonyms #-} +{-# LANGUAGE ViewPatterns #-} +module Bug (pattern P) where + +pattern P :: C a => a +pattern P <- (m -> True) + +class C a where + m :: a -> Bool |