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/6516fd3ecfb1e6c778505c77c8a9eee9 to your computer and use it in GitHub Desktop.
Save Whateverable/6516fd3ecfb1e6c778505c77c8a9eee9 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/rCZD2xzmbG
Attribute $!a: not declared in class A
at /tmp/rCZD2xzmbG:1
------> thod new (Int $a) { self.bless(:$a) }; }⏏; my $a = A.new('aa');
expecting any of:
horizontal whitespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment