# New Ticket Created by Matthew Walton # Please include the string: [perl #66966] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=66966 >
As far as I'm aware, these should be, semantically, the same: role R { } class C { method a { } &a := method { } but R; } and role R {}; class C { method a { }; &a := method { } but R; } However, the first says: rtype not set in Main (src/gen_setting.pm:3225) While the second remains silent. I'm not sure I'm supposed to be mixing roles into methods, but as far as I'm concerned they're objects, so why not? This particular behaviour came to light trying to produce a test case for the 'rtype not set' error to help figure out what that is (it comes from inside the PAST compiler inside PCT, as far as I can tell, from one of two methods in Compiler.pir, but I can't figure out any more than that).