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

f :: (a,b) %1 -> (b,a)
f ~(x,y) = (y,x)