AllOpen: Do not make private members open (KT-16627)

This commit is contained in:
Yan Zhulanow
2017-03-13 19:31:42 +03:00
parent bb0a46ac17
commit 5d4cefcc30
4 changed files with 47 additions and 1 deletions
@@ -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 = ""
}