Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reinier Maas
GHC
Commits
232cfc24
Commit
232cfc24
authored
2 years ago
by
Simon Peyton Jones
Committed by
Marge Bot
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add regression test for #22328
parent
c6e1f3cd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
testsuite/tests/patsyn/should_compile/T22328.hs
+16
-0
16 additions, 0 deletions
testsuite/tests/patsyn/should_compile/T22328.hs
testsuite/tests/patsyn/should_compile/all.T
+1
-0
1 addition, 0 deletions
testsuite/tests/patsyn/should_compile/all.T
with
17 additions
and
0 deletions
testsuite/tests/patsyn/should_compile/T22328.hs
0 → 100644
+
16
−
0
View file @
232cfc24
{-# LANGUAGE TypeApplications, PatternSynonyms, GADTs, ViewPatterns #-}
module
T22328
where
import
Data.Typeable
data
Gadt
x
y
where
ExistentialInGadt
::
Typeable
a
=>
a
->
Gadt
x
x
pattern
CastGadt
::
Typeable
a
=>
x
~
y
=>
a
->
Gadt
x
y
pattern
CastGadt
a
<-
ExistentialInGadt
(
cast
->
Just
a
)
test
::
Gadt
i
o
->
Bool
test
gadt
=
case
gadt
of
CastGadt
@
Bool
a
->
a
_
->
False
This diff is collapsed.
Click to expand it.
testsuite/tests/patsyn/should_compile/all.T
+
1
−
0
View file @
232cfc24
...
...
@@ -84,3 +84,4 @@ test('T14630', normal, compile, ['-Wname-shadowing'])
test
('
T21531
',
[
grep_errmsg
(
r
'
INLINE
')
],
compile
,
['
-ddump-ds
'])
test
('
T22521
',
normal
,
compile
,
[''])
test
('
T23038
',
normal
,
compile_fail
,
[''])
test
('
T22328
',
normal
,
compile
,
[''])
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment