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

f :: a %1 -> (a,a)
f x = let y = x in (y,y)