Skip to content

Commit

Permalink
add NoSymbol and isStatic check
Browse files Browse the repository at this point in the history
  • Loading branch information
masonedmison committed Sep 13, 2024
1 parent 90e6ac0 commit a5efd30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class CompilerSearchVisitor(
owner.isStatic && owner.isPublic

private def isAccessible(sym: Symbol): Boolean = try
sym.isAccessibleFrom(ctx.owner.info) ||
(sym != NoSymbol && sym.isAccessibleFrom(ctx.owner.info) && sym.isStatic) ||
isAccessibleImplicitClass(sym)
catch
case err: AssertionError =>
Expand Down

0 comments on commit a5efd30

Please sign in to comment.