summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_fail/rnfail050.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rename/should_fail/rnfail050.hs')
-rw-r--r--testsuite/tests/rename/should_fail/rnfail050.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_fail/rnfail050.hs b/testsuite/tests/rename/should_fail/rnfail050.hs
new file mode 100644
index 0000000000..0c3b262a0f
--- /dev/null
+++ b/testsuite/tests/rename/should_fail/rnfail050.hs
@@ -0,0 +1,12 @@
+-- Test trying to use a function bound in the list comprehension as the transform function
+
+{-# OPTIONS_GHC -XRank2Types -XTransformListComp #-}
+
+module RnFail048 where
+
+functions :: [forall a. [a] -> [a]]
+functions = [take 4, take 5]
+
+output = [() | f <- functions, then f]
+
+