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