On Sun Aug 05 10:00:23 2012, [email protected] wrote:
> On Fri Jul 13 09:52:37 2012, [email protected] wrote:
> > Method name get_how_p_p_p is leaking to user-lever error message along
> > with some weird (my code is one-liner) line number 158519259.
> > 
> > $ perl6 -e 'class A{}; Any.HOW(A).WHAT.say'
> > use of uninitialized value of type Mu in string context  in any <anon>
> > at src/gen/BOOTSTRAP.pm:104
> > 
> > use of uninitialized value of type Mu in string context  in any <anon>
> > at src/gen/BOOTSTRAP.pm:104
> > 
> > ===SORRY!===
> > error:imcc:The opcode 'get_how_p_p_p' (get_how<3>) was not found.
> > Check the type and number of the arguments
> >     in file '(file unknown)' line 158519259
> > 
> > 
> > jnthn @ 6:46
> > Yeah, we should catch that bogus syntax rather earlier :)
> > 
> It's now more informative:
> 
> > class A{}; Any.HOW(A).WHAT.say
> Cannot give arguments to HOW
> 
> I added the exception type X::Syntax::Argument::MOPMacro, so should be
> easy to add tests.
> 
> Tagging testneeded.
> 
> /jnthn

Added test to  S12-introspection/meta-class.t

-- 
Will "Coke" Coleda

Reply via email to