class X::Syntax::Reserved
src
class X::Syntax::Reserved does X::Syntax { }
Syntax error thrwon 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
reserved
method reserved() returns Str:D
Returns a text description of the reserved syntax.
instead
method instead() returns Str
Describes what to use instead of the reserved syntax (if anything).