Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

document X::Signature::NameClash

  • Loading branch information...
commit e7f00c9caad652071f10004560d6f908a93ba2ef 1 parent 95ca006
@moritz moritz authored
Showing with 27 additions and 0 deletions.
  1. +27 −0 lib/X/Signature/NameClash.pod
View
27 lib/X/Signature/NameClash.pod
@@ -0,0 +1,27 @@
+=begin pod
+
+=TITLE class X::Signature::NameClash
+
+ my class X::Signature::NameClash does X::Comp { }
+
+Compile time error thrown when two named parameters have the same name,
+potentially through aliases.
+
+For example
+
+ sub f(:$a, :a(:@b)) { }
+
+dies with
+
+ ===SORRY!===
+ Name a used for more than one named parameter
+
+=head1 Methods
+
+=head2 name
+
+ method name() returns Str:D
+
+Returns the name that was used for more than one parameter.
+
+=end pod
Please sign in to comment.
Something went wrong with that request. Please try again.