Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created February 1, 2019 20:36
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/04ee0c9db365a470482ff442aa05c158 to your computer and use it in GitHub Desktop.
Save Whateverable/04ee0c9db365a470482ff442aa05c158 to your computer and use it in GitHub Desktop.
evalable6
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;
(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