J2K: convert protected member used outside of inheritors as public
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package test
|
||||
|
||||
open class BaseProtectedConstructor {
|
||||
protected fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
internal open class MiddleSamePackage : BaseProtectedConstructor()
|
||||
|
||||
internal class DerivedSamePackage : MiddleSamePackage() {
|
||||
fun usage() {
|
||||
foo()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user