summaryrefslogtreecommitdiff
path: root/testsuite/tests/linear/should_fail/T19120.hs
blob: 9400e5d2a6b2a66f34a4c4fabc064348a093b189 (plain)
1
2
3
4
5
6
7
8
9
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