Skip to content

Commit

Permalink
Add attributeWithParentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
jevanlingen committed Dec 19, 2024
1 parent 5314c93 commit 0f89ba0
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,19 @@ void usingGroovyNode() {
)
);
}

@Test
void attributeWithParentheses() {
rewriteRun(
groovy(
"""
class User {
public final String name
User(String name) { this.name = name}
}
(new User("henk").@name) == 'henk'
"""
)
);
}
}

0 comments on commit 0f89ba0

Please sign in to comment.