Skip to content
This repository
Browse code

document X::Signature::NameClash

  • Loading branch information...
commit e7f00c9caad652071f10004560d6f908a93ba2ef 1 parent 95ca006
Moritz Lenz authored August 21, 2012

Showing 1 changed file with 27 additions and 0 deletions. Show diff stats Hide diff stats

  1. 27  lib/X/Signature/NameClash.pod
27  lib/X/Signature/NameClash.pod
Source Rendered
... ...
@@ -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 notes on commit e7f00c9

Please sign in to comment.
Something went wrong with that request. Please try again.