projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40099ff
)
silence override warning
author
Robin Barker
<rmbarker@cpan.org>
Tue, 10 Jul 2012 23:32:36 +0000
(
00:32
+0100)
committer
Father Chrysostomos
<sprout@cpan.org>
Fri, 13 Jul 2012 16:56:49 +0000
(09:56 -0700)
The test is trying to test the behaviour being warned about,
so the code is right but the warning can be suppressed.
lib/Class/Struct.t
patch
|
blob
|
history
diff --git
a/lib/Class/Struct.t
b/lib/Class/Struct.t
index
111c090
..
fb1eb0b
100644
(file)
--- a/
lib/Class/Struct.t
+++ b/
lib/Class/Struct.t
@@
-38,7
+38,10
@@
use Class::Struct s => '$', a => '@', h => '%', c => 'aClass';
package OverrideAccessor;
use Class::Struct;
-struct( 'OverrideAccessor', { count => '$' } );
+{
+ no warnings qw(Class::Struct);
+ struct( 'OverrideAccessor', { count => '$' } );
+}
sub count {
my ($self,$count) = @_;