Skip to content

bugfix#1016: Panic on `&&` and `||` operators

Aurélien Clérac requested to merge (removed):bugfix#1016 into master

This is an attempt to fix issue#1016.

get_statement now returns a Result<StatementVariant, Error> and checks for start + 1 < end.

This does prevent Ion from panicking when &&, || and ; are not surrounded by commands.

Four tests related to this syntax error were added.

Merge request reports