Skip to content

Commit e7f00c9

Browse files
committed
document X::Signature::NameClash
1 parent 95ca006 commit e7f00c9

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

lib/X/Signature/NameClash.pod

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
=begin pod
2+
3+
=TITLE class X::Signature::NameClash
4+
5+
my class X::Signature::NameClash does X::Comp { }
6+
7+
Compile time error thrown when two named parameters have the same name,
8+
potentially through aliases.
9+
10+
For example
11+
12+
sub f(:$a, :a(:@b)) { }
13+
14+
dies with
15+
16+
===SORRY!===
17+
Name a used for more than one named parameter
18+
19+
=head1 Methods
20+
21+
=head2 name
22+
23+
method name() returns Str:D
24+
25+
Returns the name that was used for more than one parameter.
26+
27+
=end pod

0 commit comments

Comments
 (0)