Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created April 9, 2019 11:53
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/bb11ec1b19fea8a71150fd8d5f3c958b to your computer and use it in GitHub Desktop.
Save Whateverable/bb11ec1b19fea8a71150fd8d5f3c958b to your computer and use it in GitHub Desktop.
evalable6
class P {has $.x = 0; submethod BUILD() { $!x }} say P.new(x=>5).perl
(exit code 1)
===SORRY!=== Error while compiling /tmp/TsRqnaDesC
Strange text after block (missing semicolon or comma?)
at /tmp/TsRqnaDesC:1
------> {has $.x = 0; submethod BUILD() { $!x }}⏏ say P.new(x=>5).perl
expecting any of:
infix
infix stopper
statement end
statement modifier
statement modifier loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment