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


Rakudo r33577 can handle a .WHAT call on an attribute whose type is a class...

$ perl6 -e 'class A {}; class B { has A $.attr is rw }; my $b = B.new(
attr => A.new ); say $b.attr.WHAT'
A

...but not if the class happens to be the one in which the attribute
was declared.

$ perl6 -e 'class A { has A $.attr is rw }; my $b = A.new; $b.attr = $b'
Method 'ACCEPTS' not found for non-object
[...]

Reply via email to