Re: weirdness with subset on has

2020-01-13 Thread Joseph Brenner
Okay, I opened a github issue: https://github.com/rakudo/rakudo/issues/3421 On 1/13/20, Vadim Belman wrote: > At a quick glance, looks like a bug to me. Worth opening a ticket on > https://github.com/rakudo/rakudo > > Best regards, > Vadim Belman > >> On Jan 12, 2020, at 8:15 PM, Joseph

Re: weirdness with subset on has

2020-01-13 Thread Vadim Belman
At a quick glance, looks like a bug to me. Worth opening a ticket on https://github.com/rakudo/rakudo Best regards, Vadim Belman > On Jan 12, 2020, at 8:15 PM, Joseph Brenner wrote: > > Moving the definition of the subset outside of the class > covers for the weird behavior... > > my

Re: weirdness with subset on has

2020-01-12 Thread Joseph Brenner
Moving the definition of the subset outside of the class covers for the weird behavior... my @allowed = << alpha beta gamma delta >>; my @default = << alpha >>; subset Allowed of Str where * eq any( @allowed ); class HasSubset { has Allowed @.grk = @default; method echo_grk {