Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created April 5, 2019 20:18
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/01601cdf61d92dcec5fefc0d8467b365 to your computer and use it in GitHub Desktop.
Save Whateverable/01601cdf61d92dcec5fefc0d8467b365 to your computer and use it in GitHub Desktop.
evalable6
class A { has $.a; submethod BUILD (:$!a($a)) { }; multi method new (Int $a) { self.bless(:$a) }; }; my $a = A.new('aa');
(exit code 1)
===SORRY!=== Error while compiling /tmp/BSVefKAlJ7
Shape declaration with () is reserved;
please use whitespace if you meant a subsignature for unpacking,
or use the :() form if you meant to add signature info to the function's type
at /tmp/BSVefKAlJ7:1
------> class A { has $.a; submethod BUILD (:$!a⏏($a)) { }; multi method new (Int $a) { s
expecting any of:
shape declaration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment