> On 21 Jun 2015, at 12:10, Jonathan Stowe (via RT) 
> <[email protected]> wrote:
> 
> # New Ticket Created by  Jonathan Stowe 
> # Please include the string:  [perl #125445]
> # in the subject line of all future correspondence about this issue. 
> # <URL: https://rt.perl.org/Ticket/Display.html?id=125445 >
> 
> 
> Hi,
> 
>  my enum Bar <A B C>; say B.value; say B.can("value");
> 
> 1
> Too many positionals passed; expected 2 arguments but got 3
>  in block <unit> at -e:1
> 
> 
> It looks like "can()" is being passed possibly the flattened Enum or 
> something.

This appears to be a codegen issue somehow.

The call to Mu.can is generated with a (superfluous) Perl6::Metamodel::EnumHOW 
object as the first (SELF) argument, rather than B.


Liz

Reply via email to