Skip to content

Instantly share code, notes, and snippets.

@ronaldxs
Created March 24, 2018 17:37
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 ronaldxs/727b2cd165d94f44ef1c83055e31fc63 to your computer and use it in GitHub Desktop.
Save ronaldxs/727b2cd165d94f44ef1c83055e31fc63 to your computer and use it in GitHub Desktop.
Shouldn't there be an auto-generated mutator for is rw
use v6;
class C {
has $.a is rw = 3
}
my $o = C.new;
say $o.a;
$o.a = 4; # ok
say $o.a;
$o.a(5);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment