Skip to content

Commit

Permalink
make "Use of uninitialized value in numeric context" a proper warning
Browse files Browse the repository at this point in the history
This regresses one test that produces such a warning in a lives_ok block,
because currently try { } catches warnings too, although it shouldn't.
  • Loading branch information
moritz committed Sep 26, 2010
1 parent 08dc36c commit 8584a4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Any.pm
Expand Up @@ -10,7 +10,7 @@ augment class Any {
method Numeric() {
die "Can't take numeric value for object of type $.WHAT.perl()" if $.defined;
# fail "Use of uninitialized value in numeric context";
note "Use of uninitialized value in numeric context";
warn "Use of uninitialized value in numeric context";
0;
}
}
Expand Down

0 comments on commit 8584a4f

Please sign in to comment.