diff options
Diffstat (limited to 'testsuite/tests/pmcheck/should_compile/T15584.hs')
-rw-r--r-- | testsuite/tests/pmcheck/should_compile/T15584.hs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/pmcheck/should_compile/T15584.hs b/testsuite/tests/pmcheck/should_compile/T15584.hs new file mode 100644 index 0000000000..c5d38bb32f --- /dev/null +++ b/testsuite/tests/pmcheck/should_compile/T15584.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE EmptyCase #-} +{-# OPTIONS -Wincomplete-patterns #-} +module T15584 where + +import Data.Void + +data V = MkV !Void +data S1 = MkS1 !V +newtype S2 = MkS2 V + +s1 :: S1 -> a +s1 x = case x of {} + +s2 :: S2 -> a +s2 x = case x of {} |