summaryrefslogtreecommitdiffstats
path: root/t/05-isa.t
blob: 0b41b72fd2caa7e641e4a7ee4c75f530c893b7f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;

use Package::Stash;

{
    package Foo;
}

{
    package Bar;
}

my $stash = Package::Stash->new('Foo');
my @ISA = ('Bar');
@{$stash->get_or_add_package_symbol('@ISA')} = @ISA;
isa_ok('Foo', 'Bar');

done_testing;