diff options
Diffstat (limited to 'testsuite/tests/generics/GenCannotDoRep1_6.hs')
-rw-r--r-- | testsuite/tests/generics/GenCannotDoRep1_6.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/generics/GenCannotDoRep1_6.hs b/testsuite/tests/generics/GenCannotDoRep1_6.hs new file mode 100644 index 0000000000..a64629c3fb --- /dev/null +++ b/testsuite/tests/generics/GenCannotDoRep1_6.hs @@ -0,0 +1,9 @@ +{-# LANGUAGE DeriveGeneric #-} + +module GenCannotDoRep1_6 where + +import GHC.Generics + +-- We do not support occurrences of the type variable except as the last +-- argument: == (->) ((->) a Int) Int +data T a = T ((a -> Int) -> Int) deriving Generic1 |