class X::Syntax::InfixInTermPosition does X::Syntax { }

Syntax error thrown when the parser expects a term, but finds an infix operator instead.

For example

1=> 2;

dies with

===SORRY!===
Preceding context expects a termbut found infix => instead

Methods§

method infix§

method infix(--> Str:D)

Returns the symbol of the infix that was found in term position.

Typegraph§

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