Created
April 5, 2019 20:18
-
-
Save Whateverable/01601cdf61d92dcec5fefc0d8467b365 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
class A { has $.a; submethod BUILD (:$!a($a)) { }; multi method new (Int $a) { self.bless(:$a) }; }; my $a = A.new('aa'); |
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/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