On Tue, 20 Jun 2017 10:42:18 -0700, druoso wrote:
> > subset StrToInt of Str where +*; multi foo(Int(StrToInt) $f) { say $f };
> foo("42");
> Cannot invoke this object (REPR: Null; VMNull)
> in whatevercode at line 1
Looks to be an optimizer bug:
zoffix@VirtualBox~$ perl6 -e 'm: subset
On Tue, 20 Jun 2017 10:42:18 -0700, druoso wrote:
> > subset StrToInt of Str where +*; multi foo(Int(StrToInt) $f) { say $f };
> foo("42");
> Cannot invoke this object (REPR: Null; VMNull)
> in whatevercode at line 1
Looks to be an optimizer bug:
zoffix@VirtualBox~$ perl6 -e 'm: subset
# New Ticket Created by Daniel Ruoso
# Please include the string: [perl #131610]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=131610 >
> subset StrToInt of Str where +*; multi foo(Int(StrToInt) $f) { say $f };
foo("42");