Skip to content

Commit 9ea7390

Browse files
committed
isa test: do not use "base" for class in package
This was reported as a bug: when A.pm is installed somewhere in @inc, this will find it and load it, and it is stupid. Just use @isa.
1 parent cd3482c commit 9ea7390

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

t/isa.t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,9 @@ use Test::Deep;
130130

131131
{
132132
package C;
133-
use base 'A';
133+
our @ISA = 'A';
134134
}
135+
135136
package main;
136137
{
137138
my $c = bless {}, "C";

0 commit comments

Comments
 (0)