summaryrefslogtreecommitdiff
path: root/testsuite/tests/linear/should_compile/LinearGuards.hs
blob: 3ae3f039a5c58037ec52acd6e7b655692237b411 (plain)
1
2
3
4
5
6
{-# LANGUAGE LinearTypes #-}
module LinearGuards where

f :: Bool -> a %1 -> a
f b a | b = a
      | True = a