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

-- Test the 1 <= p rule
f :: a #-> b
f = f

g :: a # p -> b
g x = f x