summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/T4056.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/ghc86/T4056.hs')
-rw-r--r--tests/examples/ghc86/T4056.hs17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/examples/ghc86/T4056.hs b/tests/examples/ghc86/T4056.hs
new file mode 100644
index 0000000..9938aa2
--- /dev/null
+++ b/tests/examples/ghc86/T4056.hs
@@ -0,0 +1,17 @@
+{-# LANGUAGE TypeFamilies, RankNTypes, FlexibleContexts #-}
+{-# LANGUAGE TemplateHaskell #-}
+
+module T4056 where
+import Language.Haskell.TH
+
+astTest :: Q [Dec]
+astTest = [d|
+ class C t where
+ op :: [t] -> [t]
+ op = undefined
+ |]
+
+class D t where
+ bop :: [t] -> [t]
+ bop = undefined
+