[perl #131610] [BUG] Cannot invoke this object (REPR: Null; VMNull) when doing coercitive type constraint with subset

2017-06-22 Thread Zoffix Znet via RT
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

[perl #131610] [BUG] Cannot invoke this object (REPR: Null; VMNull) when doing coercitive type constraint with subset

2017-06-22 Thread Zoffix Znet via RT
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

[perl #131610] [BUG] Cannot invoke this object (REPR: Null; VMNull) when doing coercitive type constraint with subset

2017-06-21 Thread via RT
# 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");