Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created May 1, 2019 13:34
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/404b1654007b2ef67287db2b9c5e1839 to your computer and use it in GitHub Desktop.
Save Whateverable/404b1654007b2ef67287db2b9c5e1839 to your computer and use it in GitHub Desktop.
evalable6
role A { submethod BUILD (:$a) { say 'ROLE' }; }; class A { submethod BUILD(:$b) { say 'CLASS'; }; multi method new($b) { self.bless(:$b); }; multi method new ($a, $b) { self.bless(:$a, :$b) }; };
(exit code 1)
===SORRY!=== Error while compiling /tmp/niZGaqDysX
Redeclaration of symbol 'A'
at /tmp/niZGaqDysX:1
------> d BUILD (:$a) { say 'ROLE' }; }; class A⏏ { submethod BUILD(:$b) { say 'CLASS'; }
expecting any of:
generic role
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment