File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
test/kotlin/library-tests/java_and_kotlin_internal Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,11 @@ abstract class Modifiable extends Element {
4646 // TODO: `isSealed()` conflicts with `ClassOrInterface.isSealed()`. What name do we want to use here?
4747 predicate isSealedKotlin ( ) { this .hasModifier ( "sealed" ) }
4848
49- /** Holds if this element has a `public` modifier or is implicitly public. */
50- predicate isPublic ( ) { this .hasModifier ( "public" ) }
49+ /**
50+ * Holds if this element has a `public` modifier or is implicitly public.
51+ * Kotlin `internal` members, which are `public` in JVM Bytecode, are not considered `public`.
52+ */
53+ predicate isPublic ( ) { this .hasModifier ( "public" ) and not this .isInternal ( ) }
5154
5255 /** Holds if this element has a `protected` modifier. */
5356 predicate isProtected ( ) { this .hasModifier ( "protected" ) }
Original file line number Diff line number Diff line change 11isPublic
2- | Kotlin.kt:2:11:3:2 | kotlinFun$main |
32isInternal
43| Kotlin.kt:2:11:3:2 | kotlinFun$main |
54#select
You can’t perform that action at this time.
0 commit comments