# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #102256]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=102256 >


<moritz> nom: say num ~~ num
<p6eval> nom 97aa73: OUTPUT«Method 'ACCEPTS' not found for invocant of
class 'num' [...]
<moritz> nom: say num ~~ Num
<p6eval> nom 97aa73: OUTPUT«Bool::False␤»
<moritz> nom: say num ~~ Mu
<p6eval> nom 97aa73: OUTPUT«Bool::False␤»
<moritz> woah.
<jnthn> nom: say int ~~ Mu
<p6eval> nom 97aa73: OUTPUT«Bool::False␤»
<jnthn> hm :)
<jnthn> Well, it's a native, not an object but... :)
<moritz> nom: say num.defined
<p6eval> nom 97aa73: OUTPUT«Method 'defined' not found for invocant of
class 'num' [...]
<jnthn> Yeah, that's wrong
<jnthn> nom: say num
<p6eval> nom 97aa73: OUTPUT«Method 'gist' not found for invocant of
class 'num' [...]
<jnthn> huh
<jnthn> I'm sure that used to work.
<jnthn> nom: say int
<p6eval> nom 97aa73: OUTPUT«Method 'gist' not found for invocant of
class 'int' [...]
<moritz> jnthn: it even says 'class' in the error message, so if it's
a class, it must be ~~ Mu :-)
<jnthn> I'm really sure that one did.
<jnthn> nom: say int.^methods
<p6eval> nom 97aa73: OUTPUT«Method 'dispatch:<.^>' not found for
invocant of class 'int' [...]
* moritz writes more tests
<jnthn> nom: say int.HOW.mro(int)
<p6eval> nom 97aa73: OUTPUT«Method 'gist' not found for invocant of
class 'int' [...]
<jnthn> oh
<jnthn> that'll do it.
<masak> bug?
<jnthn> yeah, looks like
* masak submits
<jnthn> somehow it's not building the MRO properly.
<jnthn> And since method dispatch and type checking are all done by
MRO...yeah, not surprising.
<jnthn> ENEEDMOARTESTS ;)
<moritz> really? I thought the problem is that .mro returns a Parcel,
and Parcel.gist recurses into the elements
<moritz> and hits int.gist, and dies
<moritz> at least that's what the p6eval output tells me

Reply via email to