Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
9228ed44
Commit
9228ed44
authored
Jan 15, 2008
by
Ian Lynagh
Browse files
Add a test for trac
#2033
: view pattern where expression expected
parent
9b760138
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/rename/should_fail/all.T
View file @
9228ed44
...
...
@@ -52,3 +52,5 @@ test('rnfail047', normal, multimod_compile_fail, ['rnfail047', '-v0'])
test
('
rnfail048
',
normal
,
compile_fail
,
[''])
test
('
rnfail049
',
if_compiler_lt
('
ghc
',
'
6.9
',
skip
),
compile_fail
,
[''])
test
('
rnfail050
',
if_compiler_lt
('
ghc
',
'
6.9
',
skip
),
compile_fail
,
[''])
test
('
rnfail051
',
if_compiler_lt
('
ghc
',
'
6.9
',
skip
),
compile_fail
,
[''])
testsuite/tests/ghc-regress/rename/should_fail/rnfail051.hs
0 → 100644
View file @
9228ed44
-- 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
""
testsuite/tests/ghc-regress/rename/should_fail/rnfail051.stderr
0 → 100644
View file @
9228ed44
rnfail051.hs:7:16:
Pattern syntax in expression context: _ -> putStrLn "_"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment