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
b34a1531
Commit
b34a1531
authored
Aug 08, 2006
by
simonpj
Browse files
Lazy patterns can't be unboxed (Trac 845)
parent
0628d60a
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/typecheck/should_fail/all.T
View file @
b34a1531
...
...
@@ -143,3 +143,4 @@ test('tcfail155', normal, compile_fail, [''])
test
('
tcfail156
',
normal
,
compile_fail
,
[''])
test
('
tcfail157
',
normal
,
compile_fail
,
[''])
test
('
tcfail158
',
normal
,
compile_fail
,
[''])
test
('
tcfail159
',
normal
,
compile_fail
,
[''])
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail159.hs
0 → 100644
View file @
b34a1531
{-# OPTIONS -fglasgow-exts #-}
module
ShouldFail
where
h
::
Int
->
(
#
Int
,
Int
#
)
h
x
=
(
#
x
,
x
#
)
foo
x
=
case
h
x
of
~
(
#
p
,
q
#
)
->
p
testsuite/tests/ghc-regress/typecheck/should_fail/tcfail159.stderr
0 → 100644
View file @
b34a1531
tcfail159.hs:9:3:
Couldn't match kind `(#)' against `*'
When matching the kinds of `(# Int, Int #) :: (#)' and `bx :: *'
Expected type: bx
Inferred type: (# Int, Int #)
In the pattern: ~(# p, q #)
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