Skip to content

Commit

Permalink
Make sure we type check implicit return values for of and returns als…
Browse files Browse the repository at this point in the history
…o. Completely resolves RT#65128.
  • Loading branch information
jnthn committed Jun 5, 2009
1 parent a89161f commit fb2fd43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/parser/actions.pm
Expand Up @@ -812,6 +812,9 @@ method routine_def($/) {
my $trait := $_.ast;
if substr($trait[0], 0, 11) eq 'trait_verb:' {
$trait.name('!sub_trait_verb');
if $trait[0] eq 'trait_verb:returns' || $trait[0] eq 'trait_verb:of' {
$block<has_return_constraint> := 1;
}
}
else {
$trait.name('!sub_trait');
Expand Down

0 comments on commit fb2fd43

Please sign in to comment.