Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created August 30, 2019 15:58
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/0047004afc9b125d5034f99dc9dba90c to your computer and use it in GitHub Desktop.
Save Whateverable/0047004afc9b125d5034f99dc9dba90c to your computer and use it in GitHub Desktop.
evalable6
class Foo { has Int $.foo = 1; method CALL-ME(Int $foo --> ::?CLASS) { self.new: :$foo } }; my Foo $foo .= 1; say $foo
(exit code 1)
===SORRY!=== Error while compiling /tmp/89aZLp3sgY
Malformed mutator method call
at /tmp/89aZLp3sgY:1
------> S) { self.new: :$foo } }; my Foo $foo .=⏏ 1; say $foo
expecting any of:
dotty method or postfix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment