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
5760eb59
Commit
5760eb59
authored
Nov 21, 2014
by
Simon Peyton Jones
Browse files
Test Trac
#9318
parent
5f39c4de
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/indexed-types/should_fail/T9318.hs
0 → 100644
View file @
5760eb59
{-# LANGUAGE TypeFamilies #-}
module
T9318
where
type
family
F
x
type
instance
F
Int
=
Bool
foo
::
F
Int
->
()
foo
True
=
()
bar
::
F
Int
->
()
bar
'x'
=
()
testsuite/tests/indexed-types/should_fail/T9318.stderr
0 → 100644
View file @
5760eb59
T9318.hs:12:5:
Couldn't match type ‘Bool’ with ‘Char’
Expected type: F Int
Actual type: Char
In the pattern: 'x'
In an equation for ‘bar’: bar 'x' = ()
testsuite/tests/indexed-types/should_fail/all.T
View file @
5760eb59
...
...
@@ -131,3 +131,4 @@ test('BadSock', normal, compile_fail, [''])
test
('
T9580
',
normal
,
multimod_compile_fail
,
['
T9580
',
''])
test
('
T9662
',
normal
,
compile_fail
,
[''])
test
('
T7862
',
normal
,
compile_fail
,
[''])
test
('
T9318
',
normal
,
compile_fail
,
[''])
Herbert Valerio Riedel
🕺
@hvr
mentioned in commit
888d75c8
·
Nov 22, 2014
mentioned in commit
888d75c8
mentioned in commit 888d75c80bf422cd4d67c44eadce7bdfe5133633
Toggle commit list
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