What does "doesn't work" mean? Please be specific about the problem and include your perl6 --version
On my HEAD build the second one fails with
Cannot invoke object with invocation handler in this context
in sub getgrgid at test.p6 line 11
in block <unit> at test.p6 line 15

> What does "doesn't work" mean? Please be specific about the problem and include your perl6 --version
>
> On my HEAD build the second one fails with
>
> Cannot invoke object with invocation handler in this context
> in sub getgrgid at test.p6 line 11
> in block <unit> at test.p6 line 15
>

I'm not impressed with the bug tracking. No link provided in the email, and my reply with the follow-up information got lost. Today 15.35 I wrote
Perhaps it would be an idea to include the error message:
Cannot invoke object with invocation handler in this context
in sub getgrgid at b line 11
in block <unit> at b line 15
and the perl6 --version
This is Rakudo version 2016.12-118-g3baffe7 built on MoarVM version 2016.12-21-g3dc5647
implementing Perl 6.c.

> What does "doesn't work" mean? Please be specific about the problem and include your perl6 --version
>
> On my HEAD build the second one fails with
>
> Cannot invoke object with invocation handler in this context
> in sub getgrgid at test.p6 line 11
> in block <unit> at test.p6 line 15
>

I'm not impressed with the bug tracking. No link provided in the email,
and my reply with the follow-up information got lost. Today 15.35 I wrote
Perhaps it would be an idea to include the error message:
Cannot invoke object with invocation handler in this context
in sub getgrgid at b line 11
in block <unit> at b line 15
and the perl6 --version
This is Rakudo version 2016.12-118-g3baffe7 built on MoarVM version
2016.12-21-g3dc5647
implementing Perl 6.c.

Perhaps it would be an idea to include the error message:
Cannot invoke object with invocation handler in this context
in sub getgrgid at b line 11
in block <unit> at b line 15
and the perl6 --version
This is Rakudo version 2016.12-118-g3baffe7 built on MoarVM version 2016.12-21-g3dc5647
implementing Perl 6.c.