-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix/LS24004606/MOVEL Array to Array #647
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to trust your implementation because you have mixed refactoring with functional changes, and as I mentioned previously, this makes it difficult for me to understand the modifications.
@benetti-smeup, please review the tests.
I agree with you but for this circumstance was needed to avoid a big method. |
…-array' into bugfix/LS24004606/movel-array-to-array
The rules I provided were:
Or
This way, I am able to evaluate the changes more easily. However, I realize that following these rules is not always simple. |
Description
This work fixes the assignment of array to another with
MOVEL
. For example:Technical notes
On Jariko this operation caused:
Cannot set an array as factor 2 in MOVEL/MOVEL(P) statement
. Isn't a impossibility; this case was simply not covered. To achieve the goal of this PR, formovel
I have added the case when thesource
(Factor 2) is an array as well as the target. For more readable and maintenance, I refactoredmovel
by separating the case when Factor 2 is anArrayType
(onmovelFactorAsArray
) and when is not (movelFactorAsScalar
). In this last case, there are no changes that I have made: the logic is like previously except for the utilization ofwhen
.Related to #LS24004606
Checklist:
./gradlew ktlintCheck
)../gradlew check
).docs
directory.