BrowserREPL-button-tip-on BrowserREPL-button-tip-off

EditButtonTip 2019-08-04

class X::Syntax::Reserved

Compilation error due to use of syntax reserved for future use

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

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

For example

my @a();
Code

dies with

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

Methods§

method reserved§

method reserved(--> Str:D)
Code

Returns a text description of the reserved syntax.

method instead§

method instead(--> Str)
Code

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