Change " class Foo { method bar { } #= baz " to " class Foo { method bar { } #= Some comment about Foo "?
On 9/26/15, Rob Hoelz <perl6-bugs-follo...@perl.org> wrote: > # New Ticket Created by Rob Hoelz > # Please include the string: [perl #126202] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=126202 > > > > In this example: > > class Foo { method bar { } #= baz > }; > > say Foo.^find_method('bar')[0].WHY > > The comment 'baz' is attached to the class Foo, rather than the method bar. > This is the correct behavior given the specification, but I can see how that > would be confusing to a beginner. >