summaryrefslogtreecommitdiff
path: root/testsuite/tests/linear/should_compile/Linear10.hs
blob: e76a344fb096e74d71da2d6b3f5e97fad9ea9882 (plain)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE LinearTypes #-}
{-# LANGUAGE UnicodeSyntax #-}
{-# LANGUAGE GADTs #-}
module Linear10 where

data Unrestricted a where Unrestricted :: a -> Unrestricted a

unrestrictedDup :: Unrestricted a ⊸ (a, a)
unrestrictedDup (Unrestricted a) = (a,a)