summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/TH_scope.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/ghc86/TH_scope.hs')
-rw-r--r--tests/examples/ghc86/TH_scope.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/examples/ghc86/TH_scope.hs b/tests/examples/ghc86/TH_scope.hs
new file mode 100644
index 0000000..d18523a
--- /dev/null
+++ b/tests/examples/ghc86/TH_scope.hs
@@ -0,0 +1,10 @@
+-- Test for Trac #2188
+{-# LANGUAGE TemplateHaskell #-}
+
+module TH_scope where
+
+f g = [d| f :: Int
+ f = g
+ g :: Int
+ g = 4 |]
+