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

Thrown when a parameter in a signature has a twigil that it may not have. Only !, . and * as twigils are allowed.

Example:

sub f($=foo{ }

dies with

===SORRY!===
In signature parameter $=fooit is illegal to use the = twigil

Methods§

method parameter§

The name of the offensive parameter ($=foo in the example above)

method twigil§

The illegally used twigil.

Typegraph§

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

Expand chart above