Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add unit declarator to role declarations
As of Rakudo 2015.05, the `unit` declarator is required before using
`module`, `class`, `role` or `grammar` declarations (unless it uses a
block).  Code still using the old blockless semicolon form will throw a
warning. This commit stops the warning from appearing in the new Rakudo.
  • Loading branch information
paultcochrane committed May 22, 2015
commit 1e844329eeefba386cc2cc6a2302c02c8e2d608e
2 changes: 1 addition & 1 deletion lib/Class/Utils.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# extend them and access properties the same way. This just lets you apply
# the role Has to have your objects blessed, rather than having to do it in
# each class manually.
role Has;
unit role Has;

method new (*@elems, *%attrs) {
my $cand = self.Array::new(@elems);
Expand Down