Created
May 2, 2019 21:14
-
-
Save Whateverable/c65edbc82a5b94b700479be6241af453 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; multi method new($aa) { $!a = $aa; }; class B { has $!b; multi method new($x) { self.bless(:x); $b = 2; }; }; B.new(0) |
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/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