Skip to content

Commit bc76642

Browse files
committed
X::Signature::Placeholder
1 parent 3dc7ead commit bc76642

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

lib/X/Signature/Placeholder.pod

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
=begin pod
2+
3+
=TITLE class X::Signature::Placeholder
4+
5+
class X::Signature::Placeholder does X::Comp
6+
7+
Compile time error thrown when a block has both an explicit signature
8+
and placeholder parameters.
9+
10+
For example
11+
12+
sub f() { $^x }
13+
14+
dies with
15+
16+
===SORRY!===
17+
Placeholder variable '$^x' cannot override existing signature
18+
19+
=head1 Methods
20+
21+
=head2 placeholder
22+
23+
method placeholder() returns Str:D
24+
25+
Returns the name of a placeholder that was used in a block that already
26+
had a signature.
27+
28+
=end pod

0 commit comments

Comments
 (0)