diff options
Diffstat (limited to 'testsuite/tests/linear/should_fail/T21278.hs')
-rw-r--r-- | testsuite/tests/linear/should_fail/T21278.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/linear/should_fail/T21278.hs b/testsuite/tests/linear/should_fail/T21278.hs new file mode 100644 index 0000000000..d256637b32 --- /dev/null +++ b/testsuite/tests/linear/should_fail/T21278.hs @@ -0,0 +1,7 @@ +{-# LANGUAGE LinearTypes #-} +module T21278 where + +data C a = forall p. C (a %p -> a) + +f :: C a -> C a +f b = C (\x -> case b of C g -> g x) |