Closed volsa closed 1 month ago
Attention: Patch coverage is 96.29630%
with 1 lines
in your changes are missing coverage. Please review.
Project coverage is 95.62%. Comparing base (
4a1f868
) to head (f2c3b6e
).
Files | Patch % | Lines |
---|---|---|
src/validation/statement.rs | 96.29% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Resolves https://github.com/PLC-lang/rusty/issues/1148
Previously,
if
andwhile
statements expected the condition to be of type boolean and otherwise returned an error. Some projects make a lot of use of integer values as conditions, hence this PR distinguish between these two cases and returns a warning for the latter. Also values that evaluate to0
or1
are allowed without any warning / error.