We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrated from rt.perl.org#123511 (status was 'resolved')
Searchable as RT123511$
The text was updated successfully, but these errors were encountered:
(01:15:28 PM) skids: r: role A [ :$a = 1, :$b = $a * 2] { method foo { say "$a $b" } }; role B does A[:a(1)] { }; role C does A[:a(2)] { }; B.new.foo; C.new.foo; (01:15:31 PM) camelia: rakudo-parrot ce1e74: OUTPUT«1 22 4» (01:15:31 PM) camelia: ..rakudo-moar ce1e74: OUTPUT«1 22 2» (01:15:45 PM) skids: r-p++
rakudo-perl's results are correct, rakudo-moarvm is failing to recalculate the new default value based on the new provided role parameter.
Sorry, something went wrong.
This works now with rakudo.moar (on 'nom' and 'glr'):
$ perl6-m -e 'role A [ :$a = 1, :$b = $a * 2] { method foo { say "$a $b" } }; role B does A[:a(1)] { }; role C does A[:a(2)] { }; B.new.foo; C.new.foo;' 1 2 2 4
I added a test to S14-roles/parameterized-mixin.t with commit Raku/roast@6e925d7898.
I'm closing this ticket as 'resolved'.
@usev6 - Status changed from 'new' to 'resolved'
No branches or pull requests
Migrated from rt.perl.org#123511 (status was 'resolved')
Searchable as RT123511$
The text was updated successfully, but these errors were encountered: