AllOpen: Do not make private members open (KT-16627)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
annotation class AllOpen
|
||||
|
||||
@AllOpen
|
||||
private class Test {
|
||||
fun publicMethod() {}
|
||||
val publicProp: String = ""
|
||||
|
||||
protected fun protectedMethod() {}
|
||||
protected val protectedProp: String = ""
|
||||
|
||||
private fun privateMethod() {}
|
||||
private val privateProp: String = ""
|
||||
|
||||
internal fun internalMethod() {}
|
||||
internal val internalProp: String = ""
|
||||
}
|
||||
Reference in New Issue
Block a user