diff options
Diffstat (limited to 'testsuite/tests/pmcheck/should_compile/T15450.hs')
-rw-r--r-- | testsuite/tests/pmcheck/should_compile/T15450.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/pmcheck/should_compile/T15450.hs b/testsuite/tests/pmcheck/should_compile/T15450.hs new file mode 100644 index 0000000000..100c8e8f7e --- /dev/null +++ b/testsuite/tests/pmcheck/should_compile/T15450.hs @@ -0,0 +1,9 @@ +{-# LANGUAGE EmptyCase #-} +{-# LANGUAGE GADTs #-} +module T15450 where + +f :: (Int ~ Bool) => Bool -> a +f x = case x of {} + +g :: (Int ~ Bool) => Bool -> a +g x = case x of True -> undefined |