diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-01-09 08:37:01 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-01-09 08:37:01 -0800 |
commit | 71481574542a78998bec6e39bd4f238a5619f7cd (patch) | |
tree | 4b7ffa58bebb19d56d1f0c889684dbefb6685d21 | |
parent | 55b5114f4ff694ab871173b736aa2d48bb095684 (diff) | |
download | perl-71481574542a78998bec6e39bd4f238a5619f7cd.tar.gz |
Test for perl #43663
-rw-r--r-- | t/op/method.t | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/t/op/method.t b/t/op/method.t index d6c81abd03..f84f6e2aeb 100644 --- a/t/op/method.t +++ b/t/op/method.t @@ -13,7 +13,7 @@ BEGIN { use strict; no warnings 'once'; -plan(tests => 84); +plan(tests => 85); @A::ISA = 'B'; @B::ISA = 'C'; @@ -358,3 +358,11 @@ is $kalled, 1, 'calling a class method via a magic variable'; "DESTROY creating a new reference to the object generates a warning." ); } + +# [perl #43663] +{ + $::{"Just"} = \1; + sub Just::a_japh { return "$_[0] another Perl hacker," } + is eval { "Just"->a_japh }, "Just another Perl hacker,", + 'constants do not interfere with class methods'; +} |