Skip to content

Commit

Permalink
Fixes testBug519493_003 - module binding on class symbol
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <stryker@redhat.com>
  • Loading branch information
Rob Stryker committed Jul 30, 2024
1 parent 0a724af commit 72837e7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,9 @@ public boolean isWildcardType() {
@Override
public IModuleBinding getModule() {
Symbol o = this.type.tsym.owner;
if( o instanceof ClassSymbol cs) {
o = cs.owner;
}
if( o instanceof PackageSymbol ps) {
return this.resolver.bindings.getModuleBinding(ps.modle);
}
Expand Down

0 comments on commit 72837e7

Please sign in to comment.