diff options
Diffstat (limited to 'testsuite/tests/pmcheck/should_compile/T2006.hs')
-rw-r--r-- | testsuite/tests/pmcheck/should_compile/T2006.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/pmcheck/should_compile/T2006.hs b/testsuite/tests/pmcheck/should_compile/T2006.hs new file mode 100644 index 0000000000..00cd783fb2 --- /dev/null +++ b/testsuite/tests/pmcheck/should_compile/T2006.hs @@ -0,0 +1,13 @@ +{-# OPTIONS_GHC -fwarn-incomplete-patterns -fwarn-overlapping-patterns #-} +{-# LANGUAGE GADTs #-} + +module T2006 where + +data Expr a vs where + EPrim :: String -> a -> Expr a vs + EVar :: Expr a (a,vs) + +interpret :: Expr a () -> a +interpret (EPrim _ a) = a +-- interpret EVar = error "unreachable" + |