use v6;
use Test;

plan 2;

#| More
#| Than
#| One
#| Line
class App {
    #| Does
    #| Stuff
    method do-stuff() {}
}

is ~App.WHY, "More Than One Line";
is ~App.^find_method('do-stuff').WHY, "Does Stuff";

use v6;
use Test;

plan 4;

#| More
#| Than
#| One
#| Line
class App {
    #| Does
    #| Stuff
    method do-stuff(
        #| Param
        #| One
        Str $param1,

        #| Param
        #| Two
        Str $param2
    ) {}
}

my $method = App.^find_method('do-stuff');
is ~App.WHY, "More Than One Line";
is ~$method.WHY, "Does Stuff";

my ( $, $p1, $p2 ) = $method.signature.params;

is ~$p1.WHY, 'Param One';
is ~$p2.WHY, 'Param Two';

Test nested definitions for multiline leading
Test nested definitions for multiline leading
