Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
dadd8b84
Commit
dadd8b84
authored
Jun 24, 2016
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test Trac #12229
parent
0bab375a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
testsuite/tests/rename/should_fail/T12229.hs
testsuite/tests/rename/should_fail/T12229.hs
+11
-0
testsuite/tests/rename/should_fail/T12229.stderr
testsuite/tests/rename/should_fail/T12229.stderr
+5
-0
testsuite/tests/rename/should_fail/all.T
testsuite/tests/rename/should_fail/all.T
+1
-0
No files found.
testsuite/tests/rename/should_fail/T12229.hs
0 → 100644
View file @
dadd8b84
{-# LANGUAGE RecordWildCards #-}
module
T12229
where
data
T
=
MkT
{
x
,
pi
::
Float
}
f
x
=
MkT
{
..
}
-- 'pi' is not initialised, because
-- there is no local binding
g
x
pi
=
MkT
{
..
}
-- 'pi' is initialised
testsuite/tests/rename/should_fail/T12229.stderr
0 → 100644
View file @
dadd8b84
T12229.hs:7:7: warning: [-Wmissing-fields (in -Wdefault)]
• Fields of ‘MkT’ not initialised: pi
• In the expression: MkT {..}
In an equation for ‘f’: f x = MkT {..}
testsuite/tests/rename/should_fail/all.T
View file @
dadd8b84
...
...
@@ -138,3 +138,4 @@ test('T10781', normal, compile_fail, [''])
test
('
T11071
',
normal
,
compile_fail
,
[''])
test
('
T11071a
',
normal
,
compile_fail
,
[''])
test
('
T11663
',
normal
,
compile_fail
,
[''])
test
('
T12229
',
normal
,
compile
,
[''])
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