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,324
Issues
4,324
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
385
Merge Requests
385
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
fe5776b4
Commit
fe5776b4
authored
Oct 28, 2008
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test Trac
#2723
parent
5e4fb4ff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
testsuite/tests/ghc-regress/rename/should_fail/T2723.hs
testsuite/tests/ghc-regress/rename/should_fail/T2723.hs
+16
-0
testsuite/tests/ghc-regress/rename/should_fail/T2723.stderr
testsuite/tests/ghc-regress/rename/should_fail/T2723.stderr
+5
-0
testsuite/tests/ghc-regress/rename/should_fail/all.T
testsuite/tests/ghc-regress/rename/should_fail/all.T
+1
-0
No files found.
testsuite/tests/ghc-regress/rename/should_fail/T2723.hs
0 → 100644
View file @
fe5776b4
{-# OPTIONS_GHC -fwarn-name-shadowing -XNamedFieldPuns -XRecordWildCards #-}
module
WildCard
where
data
Record
=
Record
{
field1
::
Int
,
field2
::
Double
}
field3
::
Int
field3
=
3
test1
(
Record
{
field1
,
field2
})
=
let
test
=
1
in
field1
test2
::
(
Record
,
Int
)
test2
=
let
field1
=
10
field2
=
10.0
field3
=
8
in
(
Record
{
..
},
field3
)
testsuite/tests/ghc-regress/rename/should_fail/T2723.stderr
0 → 100644
View file @
fe5776b4
T2723.hs:15:4:
Warning: This binding for `field3' shadows the existing binding
defined at T2723.hs:7:0
In the binding group for: field1, field2, field3
testsuite/tests/ghc-regress/rename/should_fail/all.T
View file @
fe5776b4
...
...
@@ -69,4 +69,5 @@ test('rnfail055',
test
('
rn_dup
',
normal
,
compile_fail
,
[''])
test
('
T2310
',
normal
,
compile_fail
,
[''])
test
('
T2490
',
normal
,
compile_fail
,
[''])
test
('
T2723
',
normal
,
compile
,
[''])
# Warnings only
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