Skip to content

Commit

Permalink
Fix/workaround in trait_mod:<of> so that variables typed with Code ty…
Browse files Browse the repository at this point in the history
…pes work.
  • Loading branch information
jnthn committed Jul 5, 2009
1 parent 7522d14 commit 3e5adcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setting/traits.pm
Expand Up @@ -125,7 +125,7 @@ multi trait_mod:<does>(Hash $var, $role) {
$var does $role;
}

multi trait_mod:<of>(Code $block is rw, Object $type is rw) {
multi trait_mod:<of>(Code $block is rw where { .defined }, Object $type is rw) {
$block does Callable[$type];
}

Expand Down

0 comments on commit 3e5adcb

Please sign in to comment.