Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created May 2, 2019 21:14
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/c65edbc82a5b94b700479be6241af453 to your computer and use it in GitHub Desktop.
Save Whateverable/c65edbc82a5b94b700479be6241af453 to your computer and use it in GitHub Desktop.
evalable6
class A { has $.a; multi method new($aa) { $!a = $aa; }; class B { has $!b; multi method new($x) { self.bless(:x); $b = 2; }; }; B.new(0)
(exit code 1)
===SORRY!=== Error while compiling /tmp/54W1ENyJee
Variable '$b' is not declared. Did you mean '$!b'?
at /tmp/54W1ENyJee:1
------> multi method new($x) { self.bless(:x); ⏏$b = 2; }; }; B.new(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment