# New Ticket Created by Lithos
# Please include the string: [perl #77070]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=77070 >
Hi!
Calling .perl on an Attribute gives me a confusing error message:
Method 'attributes' not found for invocant of class ''
in 'Mu::attribs' at line 1198:CORE.setting
in 'Mu::perl' at line 1207:CORE.setting
in main program body at line 7:test.pl
Lithos
This is Rakudo Perl 6, version 2010.07-84-g0e5edb5 built on parrot 2.6.0 r48225
$ cat test.pl
use v6;
my $attr = Int.^methods.first({.name eq <new>}).^attributes.[0];
say $attr.WHAT;
say $attr.name;
say $attr.perl;