class X::Syntax::Reserved does X::Syntax { }

Syntax error thrown when a syntax is used which is reserved for future expansion.

For example

my @a();

dies with

===SORRY!===
The () shape syntax in array declarations is reserved

Methods§

method reserved§

method reserved(--> Str:D)

Returns a text description of the reserved syntax.

method instead§

method instead(--> Str)

Describes what to use instead of the reserved syntax (if anything).

Typegraph§

Type relations for X::Syntax::Reserved
raku-type-graph X::Syntax::Reserved X::Syntax::Reserved Exception Exception X::Syntax::Reserved->Exception X::Syntax X::Syntax X::Syntax::Reserved->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