Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix Empty warning on classes without attributes
Spotted by arnsholt++
  • Loading branch information
lizmat committed May 9, 2015
1 parent 9b5c02d commit 9047503
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/Mu.pm
Expand Up @@ -313,7 +313,9 @@ my class Mu { # declared in BOOTSTRAP
~ ' => '
~ $attr.get_value(self).perl
}
self.^name ~ '.new' ~ ('(' ~ @attrs.join(', ') ~ ')' if @attrs);
@attrs
?? self.^name ~ '.new' ~ '(' ~ @attrs.join(', ') ~ ')'
!! self.^name ~ '.new()';
}

proto method DUMP(|) { * }
Expand Down

0 comments on commit 9047503

Please sign in to comment.