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

-- The error message should mention "arising from multiplicity of x".

foo :: (a %p -> b) -> a %q -> b
foo f x = f x