Skip to content

Commit

Permalink
[perl #107002] No warnings test for require a::b+1
Browse files Browse the repository at this point in the history
This used to produce an erroneous ambiguity warning.  The . case
stopped warning in 5.12.0.  The + case stopped warning earlier today
with commit c31f6d3.
  • Loading branch information
Father Chrysostomos committed Sep 20, 2012
1 parent 8926909 commit a71a1af
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions t/lib/warnings/toke
Expand Up @@ -1294,3 +1294,11 @@ print '';
eval this_method_is_fake ();
EXPECT
Undefined subroutine &main::this_method_is_fake called at - line 4.
########
# toke.c
# [perl #107002] Erroneous ambiguity warnings
sub { # do not actually call require
require a::b . 1; # These used to produce erroneous
require a::b + 1; # ambiguity warnings.
}
EXPECT

0 comments on commit a71a1af

Please sign in to comment.