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

f :: Bool -> a #-> a
f b a | b = a
      | True = a