Vsevolod Tolstopyatov | 74bcc92 | 2018-05-03 20:07:54 +0300 | [diff] [blame] | 1 | package cases.private |
2 | |||||
3 | // properties | ||||
4 | private val privateVal: Any? = 1 | ||||
5 | private var privateVar: Any? = 1 | ||||
6 | |||||
7 | // constants | ||||
8 | |||||
9 | private const val privateConst: Int = 4 | ||||
10 | |||||
11 | // fun | ||||
12 | |||||
13 | @Suppress("UNUSED_PARAMETER") | ||||
14 | private fun privateFun(a: Any?) = privateConst | ||||
15 | |||||
16 | // access | ||||
17 | private class PrivateClassInPart { | ||||
18 | internal fun accessUsage() { | ||||
19 | privateFun(privateVal) | ||||
20 | privateFun(privateVar) | ||||
21 | privateFun(privateConst) | ||||
22 | } | ||||
23 | |||||
24 | } |