Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
d02df2f1
Commit
d02df2f1
authored
Mar 6, 2023
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Fix error message
parent
9bc0ae5b
No related branches found
No related tags found
1 merge request
!164
Fix function with tuple type in codomain
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/language/ast/ASTNodeListAffectationExpressionBuilder.cpp
+2
-2
2 additions, 2 deletions
src/language/ast/ASTNodeListAffectationExpressionBuilder.cpp
tests/test_ASTNodeListAffectationExpressionBuilder.cpp
+2
-2
2 additions, 2 deletions
tests/test_ASTNodeListAffectationExpressionBuilder.cpp
with
4 additions
and
4 deletions
src/language/ast/ASTNodeListAffectationExpressionBuilder.cpp
+
2
−
2
View file @
d02df2f1
...
...
@@ -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
tuple
s"
,
std
::
vector
{
node
.
begin
()});
throw
ParseError
(
"undefined affectation operator for
list
s"
,
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
()});
}
}
This diff is collapsed.
Click to expand it.
tests/test_ASTNodeListAffectationExpressionBuilder.cpp
+
2
−
2
View file @
d02df2f1
...
...
@@ -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
tuple
s"
});
CHECK_AST_THROWS_WITH
(
data
,
std
::
string
{
"undefined affectation operator for
list
s"
});
}
SECTION
(
"invalid operand type for affectation"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment