Skip to content
GitLab
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
ce40c02e
Commit
ce40c02e
authored
Sep 15, 2010
by
simonpj
Browse files
Add test for Trac
#4246
parent
c8bbc83d
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/indexed-types/should_fail/T4246.hs
0 → 100644
View file @
ce40c02e
{-# LANGUAGE TypeFamilies, FlexibleInstances, OverlappingInstances #-}
module
T4246
where
class
Stupid
a
where
type
F
a
instance
Stupid
a
where
type
F
a
=
a
instance
Stupid
Int
where
type
F
Int
=
Bool
type
family
G
a
::
*
type
instance
G
Int
=
Int
type
instance
G
Int
=
Bool
testsuite/tests/ghc-regress/indexed-types/should_fail/T4246.stderr
0 → 100644
View file @
ce40c02e
T4246.hs:8:9:
Conflicting family instance declarations:
type instance F a -- Defined at T4246.hs:8:9
type instance F Int -- Defined at T4246.hs:11:9
T4246.hs:14:15:
Conflicting family instance declarations:
type instance G Int -- Defined at T4246.hs:14:15
type instance G Int -- Defined at T4246.hs:15:15
testsuite/tests/ghc-regress/indexed-types/should_fail/all.T
View file @
ce40c02e
...
...
@@ -53,3 +53,4 @@ test('NoMatchErr', normal, compile_fail, [''])
test
('
T2677
',
normal
,
compile_fail
,
[''])
test
('
T4099
',
normal
,
compile_fail
,
[''])
test
('
T4272
',
normal
,
compile_fail
,
[''])
test
('
T4246
',
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