Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tobias Decking
GHC
Commits
853cdaea
Commit
853cdaea
authored
Oct 24, 2016
by
Simon Peyton Jones
Browse files
Test Trac #12081
parent
03b0b8e4
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/dependent/should_fail/T12081.hs
0 → 100644
View file @
853cdaea
{-# LANGUAGE TypeInType #-}
module
T12081
where
data
Nat
=
Z
|
S
Nat
class
C
(
n
::
Nat
)
where
type
T
n
::
Nat
f
::
(
a
::
T
n
)
testsuite/tests/dependent/should_fail/T12081.stderr
0 → 100644
View file @
853cdaea
T12081.hs:9:14: error:
• Type constructor ‘T’ cannot be used here
(it is defined and used in the same recursive group)
• In the kind ‘T n’
In the type signature: f :: (a :: T n)
In the class declaration for ‘C’
testsuite/tests/dependent/should_fail/all.T
View file @
853cdaea
...
...
@@ -15,3 +15,4 @@ test('KindLevelsB', normal, compile_fail, [''])
test
('
T11473
',
normal
,
compile_fail
,
[''])
test
('
T11471
',
normal
,
compile_fail
,
[''])
test
('
T12174
',
normal
,
compile_fail
,
[''])
test
('
T12081
',
normal
,
compile_fail
,
[''])
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