Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,309
Issues
4,309
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
383
Merge Requests
383
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
a3a99eb4
Commit
a3a99eb4
authored
Aug 04, 2013
by
eir@cis.upenn.edu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test case for
#7938
.
parent
65a5305e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
testsuite/tests/indexed-types/should_fail/T7938.hs
testsuite/tests/indexed-types/should_fail/T7938.hs
+12
-0
testsuite/tests/indexed-types/should_fail/T7938.stderr
testsuite/tests/indexed-types/should_fail/T7938.stderr
+6
-0
testsuite/tests/indexed-types/should_fail/all.T
testsuite/tests/indexed-types/should_fail/all.T
+1
-0
No files found.
testsuite/tests/indexed-types/should_fail/T7938.hs
0 → 100644
View file @
a3a99eb4
{-# LANGUAGE TypeFamilies, PolyKinds, MultiParamTypeClasses,
FlexibleInstances, DataKinds #-}
module
T7938
where
data
KProxy
(
a
::
*
)
=
KP
class
Foo
(
a
::
k1
)
(
b
::
k2
)
where
type
Bar
a
instance
Foo
(
a
::
k1
)
(
b
::
k2
)
where
type
Bar
a
=
(
KP
::
KProxy
k2
)
\ No newline at end of file
testsuite/tests/indexed-types/should_fail/T7938.stderr
0 → 100644
View file @
a3a99eb4
T7938.hs:12:16:
Expected kind ‛*’, but ‛KP’ has kind ‛KProxy k2’
In the type ‛(KP :: KProxy k2)’
In the type instance declaration for ‛Bar’
In the instance declaration for ‛Foo (a :: k1) (b :: k2)’
testsuite/tests/indexed-types/should_fail/all.T
View file @
a3a99eb4
...
...
@@ -100,3 +100,4 @@ test('T7786', normal, compile_fail, [''])
test
('
NoGood
',
normal
,
compile_fail
,
[''])
test
('
T7967
',
normal
,
compile_fail
,
[''])
test
('
T7938
',
normal
,
compile_fail
,
[''])
\ No newline at end of file
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