On Wed Jul 08 03:59:21 2009, masak wrote:
> <masak> rakudo: class A { method foo {"A.foo"} }; class C { has A $.a
> handles *; }; my C $c .= new; say C.foo
> <p6eval> rakudo 70bfd5: OUTPUT«Method 'foo' not found for invocant of
> class ''»
> <masak> NYI?
> <jnthn> I'm sure we had tests for handles *
> <jnthn> oh
> <jnthn> rakudo: class A { method foo {"A.foo"} }; class C { has A $.a
> handles *; }; my C $c .= new; $c.foo
> <p6eval> rakudo 70bfd5: ( no output )
> <jnthn> indeed, I know why that is
> <masak> ok?
> <jnthn> masak: file rakudobug
> <jnthn> They should both work.
> * masak files
> <masak> oh -- I called the type object's .foo
No, I was wrong, it shouldn't work. A type object has no attributes.
Latest Rakudo reports this:
> class A { method foo {"A.foo"} }; class C { has A $.a handles *; };
> say C.foo
Cannot access attributes in a type object
Rejecting ticket as the premise that it should work was wrong.
/jnthn