Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
X::Signature::Placeholder
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 |