Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created April 17, 2019 19:24
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/a4727c1f8ebbdbcddfff764e48c85e2a to your computer and use it in GitHub Desktop.
Save Whateverable/a4727c1f8ebbdbcddfff764e48c85e2a to your computer and use it in GitHub Desktop.
evalable6
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
(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