Skip to content

Instantly share code, notes, and snippets.

@gfldex
Created January 5, 2016 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gfldex/17854500ab8050a228ed to your computer and use it in GitHub Desktop.
Save gfldex/17854500ab8050a228ed to your computer and use it in GitHub Desktop.
multi sub trait_mod:<is>(Routine $r, :$foo!){};
multi sub trait_mod:<is>(Routine $r, :$bar!){};
multi sub trait_mod:<is>(Routine $r, :$combined!){
(&trait_mod:<is>)($r, :foo);
(&trait_mod:<is>)($r, :bar)
};
sub target () is combined {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment