Skip to content

Commit

Permalink
Fix test0292 - resolving a name to a type binding
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <[email protected]>
  • Loading branch information
Rob Stryker committed May 31, 2024
1 parent 4d4d633 commit 1122e34
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,11 @@ IBinding resolveName(Name name) {
}
if (tree == null) {
tree = this.converter.domToJavac.get(name.getParent());
if( tree instanceof JCFieldAccess jcfa) {
if( jcfa.selected instanceof JCIdent jcid && jcid.toString().equals(name.toString())) {
tree = jcfa.selected;
}
}
}
if( tree != null ) {
IBinding ret = resolveNameToJavac(name, tree);
Expand Down

0 comments on commit 1122e34

Please sign in to comment.