Skip to content
Snippets Groups Projects
Commit d02df2f1 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fix error message

parent 9bc0ae5b
No related branches found
No related tags found
1 merge request!164Fix function with tuple type in codomain
......@@ -909,9 +909,9 @@ ASTNodeListAffectationExpressionBuilder::ASTNodeListAffectationExpressionBuilder
if (node.is_type<language::eq_op>()) {
this->_buildListAffectationProcessor<language::eq_op>();
} else {
throw ParseError("undefined affectation operator for tuples", std::vector{node.begin()});
throw ParseError("undefined affectation operator for lists", std::vector{node.begin()});
}
} else {
throw ParseError("invalid right hand side in tuple affectation", std::vector{node.children[1]->begin()});
throw ParseError("invalid right hand side in list affectation", std::vector{node.children[1]->begin()});
}
}
......@@ -1517,7 +1517,7 @@ let i:R;
(x,i) = 3;
)";
CHECK_AST_THROWS_WITH(data, std::string{"invalid right hand side in tuple affectation"});
CHECK_AST_THROWS_WITH(data, std::string{"invalid right hand side in list affectation"});
}
SECTION("incompatible list sizes")
......@@ -1555,7 +1555,7 @@ let(x,y):R*R,(x,y)=(2,3);
(x,y) += (1,4);
)";
CHECK_AST_THROWS_WITH(data, std::string{"undefined affectation operator for tuples"});
CHECK_AST_THROWS_WITH(data, std::string{"undefined affectation operator for lists"});
}
SECTION("invalid operand type for affectation")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment