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,323
Issues
4,323
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
376
Merge Requests
376
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
5dc88b72
Commit
5dc88b72
authored
Sep 03, 2015
by
Jan Stolarek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for T10836 (expected broken)
parent
37445780
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
testsuite/tests/typecheck/should_fail/T10836.hs
testsuite/tests/typecheck/should_fail/T10836.hs
+10
-0
testsuite/tests/typecheck/should_fail/T10836.stderr
testsuite/tests/typecheck/should_fail/T10836.stderr
+14
-0
testsuite/tests/typecheck/should_fail/all.T
testsuite/tests/typecheck/should_fail/all.T
+1
-0
No files found.
testsuite/tests/typecheck/should_fail/T10836.hs
0 → 100644
View file @
5dc88b72
{-# LANGUAGE TypeFamilies #-}
module
T10836
where
type
family
Foo
a
=
r
|
r
->
a
where
Foo
Int
=
Int
Foo
Bool
=
Int
type
family
Bar
a
=
r
|
r
->
a
where
Bar
Int
=
Int
Bar
Bool
=
Int
testsuite/tests/typecheck/should_fail/T10836.stderr
0 → 100644
View file @
5dc88b72
T10836.hs:5:5: error:
Type family equations violate injectivity annotation:
Foo Int = Int
Foo Bool = Int
In the equations for closed type family ‘Foo’
In the type family declaration for ‘Foo’
T10836.hs:9:5: error:
Type family equations violate injectivity annotation:
Bar Int = Int
Bar Bool = Int
In the equations for closed type family ‘Bar’
In the type family declaration for ‘Bar’
testsuite/tests/typecheck/should_fail/all.T
View file @
5dc88b72
...
...
@@ -395,3 +395,4 @@ test('ExpandSynsFail2', normal, compile_fail, ['-fprint-expanded-synonyms'])
test
('
ExpandSynsFail3
',
normal
,
compile_fail
,
['
-fprint-expanded-synonyms
'])
test
('
ExpandSynsFail4
',
normal
,
compile_fail
,
['
-fprint-expanded-synonyms
'])
test
('
T10698
',
expect_broken
(
10698
),
compile_fail
,
[''])
test
('
T10836
',
expect_broken
(
10836
),
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