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

data A a = A a

-- This should fail
pattern Q :: () => (A ~ f) => a -> f a
pattern Q a = A a