|Subject:||Here's a docs patch|
After 15 minutes of spinning my wheels on a confusing error message, I thought this doc patch might be useful.
diff --git a/lib/Class/Method/Modifiers.pm b/lib/Class/Method/Modifiers.pm index 92d92e9..9f0f463 100644 --- a/lib/Class/Method/Modifiers.pm +++ b/lib/Class/Method/Modifiers.pm @@ -430,7 +430,9 @@ method is an lvalue method. It is erroneous to modify a method that doesn't exist in your class's inheritance hierarchy. If this occurs, an exception will be thrown when -the modifier is defined. +the modifier is defined. It is possible to unintentionally cause this +exception if you C<use Role::Tiny> and C<use Class::Method::Modifiers> +in the same package. So don't do that. It doesn't yet play well with C<caller>. There are some C<TODO> tests for this. Don't get your hopes up though!