Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mmews committed Jul 23, 2024
1 parent 57c9d0a commit a109966
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ private boolean holdsCorrectTypeInDestructNode(RuleEnvironment G, DestructNode p
* not have nested nodes or if they are positional (because then property look-up does not make sense).
*/
private IScope createMemberScope(DestructNode node, TypeRef valueTypeRef, EObject contextObject) {
if (node.nestedNodes != null && node.nestedNodes.length == 0
if (node.nestedNodes != null && node.nestedNodes.length != 0
&& !arePositional(Arrays.asList(node.nestedNodes))) {
// also check visibility
return destructureHelper.createMemberScopeForPropertyAccess(valueTypeRef, contextObject, true);
Expand Down

0 comments on commit a109966

Please sign in to comment.