Created
April 17, 2019 19:24
-
-
Save Whateverable/a4727c1f8ebbdbcddfff764e48c85e2a 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 { has $.a; submethod BUILD(:$!a) { say 'Building role' }; method new(1) { self.bless(a => 1) }; }; class B does A { submethod BUILD { say 'Building class'; }; B.new(1).a.say |
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/ovgX7bmzbC | |
Missing block | |
at /tmp/ovgX7bmzbC:1 | |
------> say 'Building class'; }; B.new(1).a.say⏏<EOL> | |
expecting any of: | |
statement end | |
statement modifier | |
statement modifier loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment