Skip to content

Instantly share code, notes, and snippets.

@tokuhirom
Last active October 10, 2015 01:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tokuhirom/70df67f456ea6193434a to your computer and use it in GitHub Desktop.
Save tokuhirom/70df67f456ea6193434a to your computer and use it in GitHub Desktop.
FAIL
# lib/C/B.pm
use v6;
unit class C::B;
method a() {
my $pkg = 'C::M';
require ::($pkg);
::($pkg).new();
say "DONE";
}
use v6;
class C::T {
}
use C::B;
C::B.a();
# lib/C/M.pm
use v6;
unit class C::M;
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment