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

-- Should be rejected, #18806
pattern J :: x %1 -> Maybe x
pattern J a = Just a