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

Name a used for more than one named parameter


method name§

method name(--> Str:D)

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


Type relations for X::Signature::NameClash
raku-type-graph X::Signature::NameClash X::Signature::NameClash Exception Exception X::Signature::NameClash->Exception X::Comp X::Comp X::Signature::NameClash->X::Comp Mu Mu Any Any Any->Mu Exception->Any X::Comp->Exception

Expand chart above