Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

X::Signature::Placeholder

  • Loading branch information...
commit bc76642bff73bcfe943d9de9b30289ab81ca6d2b 1 parent 3dc7ead
@moritz moritz authored
Showing with 28 additions and 0 deletions.
  1. +28 −0 lib/X/Signature/Placeholder.pod
View
28 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
Please sign in to comment.
Something went wrong with that request. Please try again.