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

EditButtonTip 2019-08-04

class X::Syntax::Missing

Compilation error due to a missing piece of syntax

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

Syntax error thrown when the previous piece of syntax requires the existence of another piece of syntax, and that second piece is missing.

For example

for 1, 2, 3;
Code

dies with

===SORRY!===
Missing block
Code

because a for that is not a statement modifier must be followed by a block.

Methods§

method what§

method what(--> Str:D)
Code

Returns a string description of the missing syntax element.