Skip to content

Commit

Permalink
package private can be inherited... why wasn't I allowing it to be -_-
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Oct 25, 2024
1 parent 27049c8 commit a7ba45d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ enum class AccessFlag(val access: Int, vararg e: ElementType) {

fun isInheritable(set: Set<AccessFlag>): Boolean {
val vis = set.intersect(visibility)
return vis.isNotEmpty() && !vis.contains(PRIVATE) && !set.contains(STATIC)
return !vis.contains(PRIVATE) && !set.contains(STATIC)
}

fun isInheritable(access: Int): Boolean {
val vis = visibilityOf(access)
return vis != null && vis != PRIVATE && STATIC !in access
return vis != PRIVATE && STATIC !in access
}
}

Expand Down

0 comments on commit a7ba45d

Please sign in to comment.