Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic class loading failed #4638

Open
p6rt opened this issue Oct 10, 2015 · 2 comments
Open

Dynamic class loading failed #4638

p6rt opened this issue Oct 10, 2015 · 2 comments

Comments

@p6rt
Copy link

p6rt commented Oct 10, 2015

Migrated from rt.perl.org#126316 (status was 'new')

Searchable as RT126316$

@p6rt
Copy link
Author

p6rt commented Oct 10, 2015

From tokuhirom@gmail.com

Here is a code set.

==> foo.t <==
use v6;

class C​::T {
}

use C​::B;

C​::B.a()

==> lib/C/B.pm <==
use v6;
unit class C​::B;

method a() {
  my $pkg = 'C​::M';
  require :​:($pkg);
  :​:($pkg).new();
  say "DONE";
}

==> lib/C/M.pm <==
use v6;
unit class C​::M;

Run this script, then I get this message​:
ᐅ perl6-m -Ilib foo.t
Failed

Actually thrown at​:
  in method a at /Users/tokuhirom/tmp/20151010/70df67f456ea6193434a/lib/C/B.pm​:7
  in block <unit> at foo.t​:8

My Perl6 version is​:
ᐅ perl6-m --version
This is perl6 version 2015.09-210-gef814c3 built on MoarVM version 2015.09-39-g1434283

@p6rt
Copy link
Author

p6rt commented Oct 10, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant