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 term, but found infix => instead
Methods
method infix
method infix(--> Str:D)
Returns the symbol of the infix that was found in term position.
See Also
class Exception
Anomalous event capable of interrupting normal control-flow
class X::Bind
Error due to binding to something that is not a variable or container
The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society.
All rights reserved.
Built with Podlite ā the markup and publishing tools behind this site.