diff options
Diffstat (limited to 'testsuite/tests/linear/should_fail/Linear7.hs')
-rw-r--r-- | testsuite/tests/linear/should_fail/Linear7.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/linear/should_fail/Linear7.hs b/testsuite/tests/linear/should_fail/Linear7.hs new file mode 100644 index 0000000000..9ee6438b11 --- /dev/null +++ b/testsuite/tests/linear/should_fail/Linear7.hs @@ -0,0 +1,9 @@ +{-# LANGUAGE LinearTypes #-} +{-# LANGUAGE UnicodeSyntax #-} +{-# LANGUAGE LambdaCase #-} +module Linear7 where + +incorrectLCase :: Int ⊸ Bool -> Int +incorrectLCase n = \case + True -> n + False -> 0 |