class X::Syntax::Variable::Twigil does X::Syntax { }

Syntax error thrown when a variable with a twigil is used in an incompatible declaration.

For example

my $!foo;

dies with

===SORRY!===
Cannot use ! twigil on my variable

Methods§

method twigil§

method twigil(--> Str:D)

Returns the twigil that was illegally used

method scope§

method scope(--> Str:D)

Returns the scope that did not harmonize with the twigil.

Typegraph§

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

Expand chart above