Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
f78c349f
Commit
f78c349f
authored
May 04, 2006
by
simonpj
Browse files
Test for pattern type sigs in do-notation
parent
53565e8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/parser/should_compile/all.T
View file @
f78c349f
...
...
@@ -46,3 +46,4 @@ test('read036', normal, compile, [''])
test
('
read037
',
normal
,
compile
,
[''])
test
('
read038
',
normal
,
compile
,
[''])
test
('
read039
',
normal
,
compile
,
['
-fno-code
'])
test
('
read040
',
normal
,
compile
,
[''])
testsuite/tests/ghc-regress/parser/should_compile/read040.hs
0 → 100644
View file @
f78c349f
{-# OPTIONS -fglasgow-exts #-}
-- A type signature on the LHS of a do-stmt was a parse
-- error in 6.4.2, but ok thereafter
module
ShouldCompile
where
f
()
=
do
{
x
::
Bool
<-
return
True
;
return
x
}
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