explicitly mark roles with is_role for parity with Moo
Graham Knop [Thu, 11 Jul 2013 09:36:12 +0000 (05:36 -0400)]
lib/Role/Tiny.pm

index 44659cf..8cf0da5 100644 (file)
@@ -44,6 +44,7 @@ sub import {
   strict->import;
   warnings->import(FATAL => 'all');
   return if $INFO{$target}; # already exported into this package
+  $INFO{$target}{is_role} = 1;
   # get symbol table reference
   my $stash = _getstash($target);
   # install before/after/around subs