Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created May 1, 2019 13:33
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/e58508f3bdc42114c692ac600a360ca8 to your computer and use it in GitHub Desktop.
Save Whateverable/e58508f3bdc42114c692ac600a360ca8 to your computer and use it in GitHub Desktop.
evalable6
role A { submethod BUILD (:$a) { say 'ROLE' }; }; class A { submethod BUILD(:$b) { say 'CLASS'; }; method new($b) { self.bless(:$b); }; method new ($a, $b) { self.bless(:$a, :$b) }; };
(exit code 1)
===SORRY!=== Error while compiling /tmp/JxOgrtIDKP
Redeclaration of symbol 'A'
at /tmp/JxOgrtIDKP: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