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

-- See #18439

unsafeConsume :: a %1 -> ()
unsafeConsume x | _ <- x = ()