Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created April 18, 2019 00:07
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 Whateverable/48e6a575606d1b35d64d134453ae13d4 to your computer and use it in GitHub Desktop.
Save Whateverable/48e6a575606d1b35d64d134453ae13d4 to your computer and use it in GitHub Desktop.
evalable6
my role A { method bless { say "hi"; my $o = self.CREATE.BUILDALL(Empty, %attrinit); $o; }; method a { say "Role"; }; }; class B does A { method a { say "Class"; }; }; my $a = B.new but role { method a { self.B::a }; }; $a.a
(exit code 1)
===SORRY!=== Error while compiling /tmp/Tfr3h0czeB
Variable '%attrinit' is not declared
at /tmp/Tfr3h0czeB:1
------> i"; my $o = self.CREATE.BUILDALL(Empty, ⏏%attrinit); $o; }; method a { say "Role
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment