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

Thrown when a placeholder parameter is used inside a signature where a normal parameter is expected. The reason is often that a named parameter :$param was misspelled as $:param.

For example

sub f($:param{ }

dies with

In signature parameterplaceholder variables like $:param are illegal
you probably meant a named parameter: ':$param'


method parameter§

The text of the offensive parameter declaration ($:param in the example above).

method right§

Suggestion on how to write the parameter declaration instead (:$param in the example above).


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

Expand chart above