summaryrefslogtreecommitdiff
path: root/testsuite/tests/linear/should_fail/Linear5.hs
blob: ad0c80356c06cf5a78ca10a12adf4d3361761446 (plain)
1
2
3
4
5
6
7
{-# LANGUAGE LinearTypes #-}
{-# LANGUAGE UnicodeSyntax #-}
module Linear5 where

incorrectEqn :: Bool -> Int ⊸ Int
incorrectEqn True  n = n
incorrectEqn False n = 0