Skip to content

Fix incorrectly generated break statement outside switch

Ghost User requested to merge fix-itasks-273-break-outside-switch into hierarchical

This fixes https://gitlab.science.ru.nl/clean-and-itasks/iTasks-SDK/issues/273.

The code generator keeps track of whether it is in a pattern-matching switch. If so, a pattern matching failure is generated as break; otherwise as a throw. The two fixed lines were places where the internal state was incorrectly updated as if a switch was generated.

Edited by Ghost User

Merge request reports

Loading