diff options
Diffstat (limited to 'testsuite/tests/rename/should_fail/rnfail051.hs')
-rw-r--r-- | testsuite/tests/rename/should_fail/rnfail051.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_fail/rnfail051.hs b/testsuite/tests/rename/should_fail/rnfail051.hs new file mode 100644 index 0000000000..227e040033 --- /dev/null +++ b/testsuite/tests/rename/should_fail/rnfail051.hs @@ -0,0 +1,11 @@ +-- trac #2033: This used to fail when the renamer didn't check for a view +-- /pattern/ being used in an /expression/ context + +module RnFail051 where + +main :: IO () +main = wrapper (_ -> putStrLn "_") + +wrapper :: (String -> IO ()) -> IO () +wrapper f = f "" + |