Created
July 11, 2012 06:30
-
-
Save wakaba/3088394 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Test::More tests => 2; | |
push @Class1::ISA, qw(Base1 Base2); | |
sub Base2::hoge { 0 } | |
{ | |
local *Base1::hoge = sub { 1 }; | |
ok +Class1->hoge; | |
} | |
ok !+Class1->hoge; |
use Test::More tests => 2;
push @Class1::ISA, qw(Base1 Base2);
sub Base2::hoge { 0 }
sub Base1::hoge { 0 }
{
local *Base1::hoge = sub { 1 };
ok +Class1->hoge;
}
ok !+Class1->hoge;
-> OK (Perl 5.10.1)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perl 5.8.8 -> PASS
Perl 5.10.1, 5.14.2, 5.16.0 ->