Skip to content

Commit

Permalink
Add checks for NoSymbol and isStatic
Browse files Browse the repository at this point in the history
  • Loading branch information
masonedmison committed Sep 13, 2024
1 parent 0b742a2 commit 1064437
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ class CompilerSearchVisitor(
// has a type other than `NoPrefix`.
val check =
if (ctx.owner.info.matches(NoPrefix))
sym.isPublic
sym != NoSymbol && sym.isPublic && sym.isStatic
else
sym.isAccessibleFrom(ctx.owner.info)
sym != NoSymbol &&
sym.isAccessibleFrom(ctx.owner.info) &&
sym.isStatic

check ||
isAccessibleImplicitClass(sym) }
Expand Down

0 comments on commit 1064437

Please sign in to comment.