summaryrefslogtreecommitdiff
path: root/testsuite/tests/linear/should_fail/Linear5.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/linear/should_fail/Linear5.hs')
-rw-r--r--testsuite/tests/linear/should_fail/Linear5.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/linear/should_fail/Linear5.hs b/testsuite/tests/linear/should_fail/Linear5.hs
new file mode 100644
index 0000000000..ad0c80356c
--- /dev/null
+++ b/testsuite/tests/linear/should_fail/Linear5.hs
@@ -0,0 +1,7 @@
+{-# LANGUAGE LinearTypes #-}
+{-# LANGUAGE UnicodeSyntax #-}
+module Linear5 where
+
+incorrectEqn :: Bool -> Int ⊸ Int
+incorrectEqn True n = n
+incorrectEqn False n = 0