summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/TH_scope.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/th/TH_scope.hs')
-rw-r--r--testsuite/tests/th/TH_scope.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/th/TH_scope.hs b/testsuite/tests/th/TH_scope.hs
new file mode 100644
index 0000000000..7674a5d1c0
--- /dev/null
+++ b/testsuite/tests/th/TH_scope.hs
@@ -0,0 +1,8 @@
+-- Test for Trac #2188
+
+module TH_scope where
+
+f g = [d| f :: Int
+ f = g
+ g :: Int
+ g = 4 |]