Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created April 5, 2019 20:18
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