perl6/doc/lib/X/Signature/NameClash

doc src
(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

 

Methods

(head2) name
    method name() returns Str:D

 
Returns the name that was used for more than one parameter.

Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.
Email:
Name: