Created
February 1, 2019 20:36
-
-
Save Whateverable/04ee0c9db365a470482ff442aa05c158 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
c lass A { my $foo = 5; method foo { $foo }; method set-foo($v) { $foo = $v } }; say A.foo; A.set-foo(10); say A.foo; |
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!=== | |
Undeclared name: | |
A used at line 1 | |
Undeclared routines: | |
c used at line 1 | |
lass used at line 1. Did you mean 'last'? | |
Other potential difficulties: | |
Useless declaration of a has-scoped method in mainline (did you mean 'my method foo'?) | |
at /tmp/1oQJnoyP9G:1 | |
------> c lass A { my $foo = 5; method⏏ foo { $foo }; method set-foo($v) { $foo | |
Useless declaration of a has-scoped method in mainline (did you mean 'my method set-foo'?) | |
at /tmp/1oQJnoyP9G:1 | |
------> my $foo = 5; method foo { $foo }; method⏏ set-foo($v) { $foo = $v } }; say A.foo; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment