Skip to content
GitLab
Menu
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
e9b2dc50
Commit
e9b2dc50
authored
Apr 23, 2009
by
simonpj
Browse files
Test Trac
#3176
parent
74925127
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/typecheck/should_fail/T3176.hs
0 → 100644
View file @
e9b2dc50
{-# LANGUAGE ExistentialQuantification #-}
-- Trac #3176
module
Foo
where
data
ES
=
forall
a
.
Show
a
=>
ES
{
unES
::
a
}
smallPrintES
f
t
=
show
$
unES
$
f
t
testsuite/tests/ghc-regress/typecheck/should_fail/T3176.stderr
0 → 100644
View file @
e9b2dc50
T3176.hs:9:26:
Cannot use record selector `unES' as a function due to escaped type variables
Probable fix: use pattern-matching syntax instead
In the first argument of `($)', namely `unES'
In the second argument of `($)', namely `unES $ f t'
In the expression: show $ unES $ f t
testsuite/tests/ghc-regress/typecheck/should_fail/all.T
View file @
e9b2dc50
...
...
@@ -208,3 +208,4 @@ test('T2688', normal, compile_fail, [''])
test
('
T2714
',
normal
,
compile_fail
,
[''])
test
('
T2994
',
normal
,
compile_fail
,
[''])
test
('
T3155
',
normal
,
compile_fail
,
[''])
test
('
T3176
',
normal
,
compile_fail
,
[''])
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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