Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
X::Signature::Placeholder
  • Loading branch information
moritz committed Aug 30, 2012
1 parent 3dc7ead commit bc76642
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions lib/X/Signature/Placeholder.pod
@@ -0,0 +1,28 @@
=begin pod
=TITLE class X::Signature::Placeholder
class X::Signature::Placeholder does X::Comp
Compile time error thrown when a block has both an explicit signature
and placeholder parameters.
For example
sub f() { $^x }
dies with
===SORRY!===
Placeholder variable '$^x' cannot override existing signature
=head1 Methods
=head2 placeholder
method placeholder() returns Str:D
Returns the name of a placeholder that was used in a block that already
had a signature.
=end pod

0 comments on commit bc76642

Please sign in to comment.