Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
670796ec
Commit
670796ec
authored
Sep 29, 2011
by
Simon Peyton Jones
Browse files
Test Trac #5515
parent
64213029
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/indexed-types/should_fail/T5515.hs
0 → 100644
View file @
670796ec
{-# LANGUAGE ConstraintKinds, FlexibleInstances, TypeFamilies,
MultiParamTypeClasses, FlexibleContexts, UndecidableInstances, ScopedTypeVariables #-}
module
T5515
where
class
ctx
(
Arg
ctx
)
=>
Bome
ctx
where
type
BArg
ctx
instance
ctx
a
=>
Bome
ctx
where
type
BArg
ctx
=
a
class
C
f
a
class
C
f
(
Arg
f
)
=>
Some
f
where
type
Arg
f
instance
C
f
a
=>
Some
f
where
type
Arg
f
=
a
testsuite/tests/indexed-types/should_fail/T5515.stderr
0 → 100644
View file @
670796ec
T5515.hs:9:3:
The RHS of an associated type declaration mentions type variable `a'
All such variables must be bound on the LHS
T5515.hs:15:3:
The RHS of an associated type declaration mentions type variable `a'
All such variables must be bound on the LHS
testsuite/tests/indexed-types/should_fail/all.T
View file @
670796ec
...
...
@@ -71,3 +71,5 @@ test('T2664a', normal, compile, [''])
test
('
T2544
',
normal
,
compile_fail
,
[''])
test
('
T1897b
',
normal
,
compile_fail
,
[''])
test
('
T5439
',
normal
,
compile_fail
,
[''])
test
('
T5515
',
normal
,
compile_fail
,
[''])
Write
Preview
Markdown
is supported
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