Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add test for RT #76606
  • Loading branch information
usev6 committed Oct 22, 2014
1 parent 32699ba commit 698a635
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S10-packages/basic.t
Expand Up @@ -4,7 +4,7 @@ use v6;

use Test;

plan 61;
plan 62;

my regex fairly_conclusive_platform_error {:i ^\N* <<Null?>>}

Expand Down Expand Up @@ -269,4 +269,11 @@ eval_dies_ok q[
lives_ok {Foo1::bar(); module Foo1 { our $x = 42; our sub bar() { $x.defined } }}, 'accessing module variable from within sub called from outside the module';
}

# RT #76606
{
use lib 't/spec/packages';
lives_ok { use RT76606 },
'autovivification works with nested "use" directives (import from two nested files)';
}

# vim: ft=perl6
3 changes: 3 additions & 0 deletions packages/RT76606.pm
@@ -0,0 +1,3 @@
use RT76606::a;

class RT76606 { }
1 change: 1 addition & 0 deletions packages/RT76606/a.pm
@@ -0,0 +1 @@
class RT76606::a { };

0 comments on commit 698a635

Please sign in to comment.