diff --git a/src/language/node_processor/AffectationProcessor.hpp b/src/language/node_processor/AffectationProcessor.hpp index e15d4aa692e9ddbc54ac086317b9ce8289c28b4c..1675793a66009eb04246334d7218dd98b2d95c21 100644 --- a/src/language/node_processor/AffectationProcessor.hpp +++ b/src/language/node_processor/AffectationProcessor.hpp @@ -133,7 +133,9 @@ class AffectationExecutor final : public IAffectationExecutor if constexpr (std::is_convertible_v<Vi_T, double>) { m_lhs[i] = vi; } else { + // LCOV_EXCL_START throw UnexpectedError("unexpected rhs type in affectation"); + // LCOV_EXCL_STOP } }, v[i]); @@ -145,7 +147,9 @@ class AffectationExecutor final : public IAffectationExecutor if constexpr (std::is_convertible_v<Vi_T, double>) { m_lhs = v; } else { + // LCOV_EXCL_START throw UnexpectedError("unexpected rhs type in affectation"); + // LCOV_EXCL_STOP } }, rhs);