Created
May 1, 2019 13:34
-
-
Save Whateverable/404b1654007b2ef67287db2b9c5e1839 to your computer and use it in GitHub Desktop.
evalable6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) }; }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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