diff options
Diffstat (limited to 'testsuite/tests/linear/should_fail/T19120.hs')
-rw-r--r-- | testsuite/tests/linear/should_fail/T19120.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/linear/should_fail/T19120.hs b/testsuite/tests/linear/should_fail/T19120.hs new file mode 100644 index 0000000000..9400e5d2a6 --- /dev/null +++ b/testsuite/tests/linear/should_fail/T19120.hs @@ -0,0 +1,10 @@ +{-# LANGUAGE LinearTypes #-} +module T19120 where + +notL :: Bool %1 -> Bool +notL True = False +notL False = True + +z :: Bool %1 -> Bool +z x | notL x = True +z x | otherwise = notL x |