summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_fail/T4042.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rename/should_fail/T4042.hs')
-rw-r--r--testsuite/tests/rename/should_fail/T4042.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_fail/T4042.hs b/testsuite/tests/rename/should_fail/T4042.hs
new file mode 100644
index 0000000000..221b5519ef
--- /dev/null
+++ b/testsuite/tests/rename/should_fail/T4042.hs
@@ -0,0 +1,12 @@
+-- Test Trac #4042
+
+module T4042 where
+
+f :: A -> A
+f
+-- The above line is a naked Template Haskell splice
+-- When compiling without -XTemplateHaskell we don't
+-- want a confusing error messsage saying "A is not in scope"
+
+data A = A
+