Created
March 24, 2018 17:37
-
-
Save ronaldxs/727b2cd165d94f44ef1c83055e31fc63 to your computer and use it in GitHub Desktop.
Shouldn't there be an auto-generated mutator for is rw
This file contains hidden or 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
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