You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the smallest, simplest way to reproduce the problem?
@TestvoidmultipleAssignmentsAtOneLine() {
rewriteRun(
groovy(
""" def a = '1', b = '2'"""
)
);
}
What did you expect to see?
Working tests
What did you see instead?
Expected :"def a = '1', b = '2'"
Actual :"def a = '1', bb = '2'"
Multiple variable declarations is also called combined variable declaration. Each variable is independently assigned, and there's no unpacking of a collection like it is with the multiple assignments groovy feature.
The text was updated successfully, but these errors were encountered:
jevanlingen
changed the title
Groovy parser does not support multiple assignments
Groovy parser does not support multiple variable declarations
Dec 9, 2024
What is the smallest, simplest way to reproduce the problem?
What did you expect to see?
Working tests
What did you see instead?
Multiple variable declarations is also called combined variable declaration. Each variable is independently assigned, and there's no unpacking of a collection like it is with the multiple assignments groovy feature.
The text was updated successfully, but these errors were encountered: