This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8926909
)
[perl #107002] No warnings test for require a::b+1
author
Father Chrysostomos
<sprout@cpan.org>
Thu, 20 Sep 2012 16:56:18 +0000
(09:56 -0700)
committer
Father Chrysostomos
<sprout@cpan.org>
Thu, 20 Sep 2012 16:58:17 +0000
(09:58 -0700)
This used to produce an erroneous ambiguity warning. The . case
stopped warning in 5.12.0. The + case stopped warning earlier today
with commit
c31f6d3b
.
t/lib/warnings/toke
patch
|
blob
|
blame
|
history
diff --git
a/t/lib/warnings/toke
b/t/lib/warnings/toke
index
34003c2
..
bceb536
100644
(file)
--- a/
t/lib/warnings/toke
+++ b/
t/lib/warnings/toke
@@
-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