summaryrefslogtreecommitdiff
path: root/testsuite/tests/patsyn/should_fail/T11039a.hs
blob: 527a90f20b2aeb27feb54b9b150451b2727b6801 (plain)
1
2
3
4
5
6
7
8
{-# LANGUAGE PatternSynonyms #-}
module T11039a where

data A a = A a

-- This should succeed
pattern Q2 :: (A ~ f) => a -> f a
pattern Q2 a = A a