This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #107002] No warnings test for require a::b+1
authorFather Chrysostomos <sprout@cpan.org>
Thu, 20 Sep 2012 16:56:18 +0000 (09:56 -0700)
committerFather 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

index 34003c2..bceb536 100644 (file)
@@ -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