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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
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
Alex D
GHC
Commits
539a9bf8
Commit
539a9bf8
authored
Apr 21, 2013
by
ian@well-typed.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test for #7848
parent
02293783
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-0
testsuite/tests/parser/should_fail/T7848.hs
testsuite/tests/parser/should_fail/T7848.hs
+11
-0
testsuite/tests/parser/should_fail/T7848.stderr
testsuite/tests/parser/should_fail/T7848.stderr
+19
-0
testsuite/tests/parser/should_fail/all.T
testsuite/tests/parser/should_fail/all.T
+1
-0
No files found.
testsuite/tests/parser/should_fail/T7848.hs
0 → 100644
View file @
539a9bf8
module
T7848
where
data
A
=
(
:&&
)
Int
Int
|
A
Int
Int
x
(
+
)
((
&
)
@
z
)
((
:&&
)
a
b
)
(
c
:&&
d
)
(
e
`
A
`
f
)
(
A
g
h
)
=
y
where
infixl
3
`
y
`
y
_
=
(
&
)
{-# INLINE (&) #-}
{-# SPECIALIZE (&) :: a #-}
(
&
)
=
x
testsuite/tests/parser/should_fail/T7848.stderr
0 → 100644
View file @
539a9bf8
T7848.hs:10:9:
Couldn't match expected type ‛forall a. a’
with actual type ‛t -> t1 -> A -> A -> A -> A -> t2’
Relevant bindings include
x :: t -> t1 -> A -> A -> A -> A -> t2 (bound at T7848.hs:6:1)
(+) :: t (bound at T7848.hs:6:3)
(&) :: t1 (bound at T7848.hs:6:8)
z :: t1 (bound at T7848.hs:6:12)
In the SPECIALISE pragma {-# SPECIALIZE (&) :: a #-}
In an equation for ‛x’:
x (+) ((&)@z) ((:&&) a b) (c :&& d) (e `A` f) (A g h)
= y
where
infixl 3 `y`
y _ = (&)
{-# INLINE (&) #-}
{-# SPECIALIZE (&) :: a #-}
(&) = x
testsuite/tests/parser/should_fail/all.T
View file @
539a9bf8
...
...
@@ -77,3 +77,4 @@ test('ParserNoMultiWayIf', when(compiler_lt('ghc', '7.5'), skip), compile_fail,
test
('
T5425
',
normal
,
compile_fail
,
[''])
test
('
T984
',
normal
,
compile_fail
,
[''])
test
('
T7848
',
normal
,
compile_fail
,
['
-dppr-user-length=100
'])
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