diff options
Diffstat (limited to 'testsuite/tests/pmcheck/complete_sigs/T17386.hs')
-rw-r--r-- | testsuite/tests/pmcheck/complete_sigs/T17386.hs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/tests/pmcheck/complete_sigs/T17386.hs b/testsuite/tests/pmcheck/complete_sigs/T17386.hs new file mode 100644 index 0000000000..05afb44135 --- /dev/null +++ b/testsuite/tests/pmcheck/complete_sigs/T17386.hs @@ -0,0 +1,18 @@ +{-# OPTIONS_GHC -Wincomplete-patterns -fforce-recomp #-} +{-# LANGUAGE PatternSynonyms #-} +module Lib where + +data B = T | F +pattern P :: B +pattern P = T +{-# COMPLETE P, F #-} + +f :: B -> () +f P = () + +pattern Q :: B +pattern Q = T +{-# COMPLETE T, Q #-} + +g :: B -> () +g Q = () |