class X::Signature::Placeholder does X::Comp { }

Compile time error thrown when a block has both an explicit signature and placeholder parameters.

For example

sub f() { $^x }

dies with

Placeholder variable '$^x' cannot override existing signature


method placeholder§

method placeholder(--> Str:D)

Returns the name of a placeholder that was used in a block that already had a signature.


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

Expand chart above