# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125324] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=125324 >
<masak> m: my $b is default(42); say $b <camelia> rakudo-moar c2a57e: OUTPUT«42» <masak> m: my ($a, $b, $c) is default(42); say $b <camelia> rakudo-moar c2a57e: OUTPUT«(Any)» <masak> this feels like it's a rakudobug for either of two reasons. <masak> (a) the default didn't apply, but it should <masak> (b) you're not allowed to do that, but there's no error message <masak> I kinda prefer (a), because it feels like it could be a useful thing to do sometimes -- to initialize several variables with the same default <masak> but I confess to not knowing how tricky it'd be implementation-wise <masak> one could argue that any trait in a declaration like that should just automatically distribute to all the declared variables <masak> as if they'd been declared individually with `is default(42)` <moritz> +1 * masak submits rakudobug