diff options
Diffstat (limited to 'testsuite/tests/gadt/gadt-dim2.hs')
-rw-r--r-- | testsuite/tests/gadt/gadt-dim2.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/gadt/gadt-dim2.hs b/testsuite/tests/gadt/gadt-dim2.hs new file mode 100644 index 0000000000..239275b42d --- /dev/null +++ b/testsuite/tests/gadt/gadt-dim2.hs @@ -0,0 +1,11 @@ +{-# LANGUAGE GADTs #-} + +module ShouldFail2 where + +data T a where + C :: Int -> T Int + D :: Bool -> T Bool + +-- should fail because variable is wobbly +foo (C x) = x +foo (D b) = b |