blob: 93d4ec14a07a7ef861c88c14de97478244173f2c [file] [log] [blame]
Roman Elizarov1f74a2d2018-06-29 19:19:45 +03001/*
2 * Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 */
4
Vsevolod Tolstopyatov74bcc922018-05-03 20:07:54 +03005package cases.private
6
7// properties
8private val privateVal: Any? = 1
9private var privateVar: Any? = 1
10
11// constants
12
13private const val privateConst: Int = 4
14
15// fun
16
17@Suppress("UNUSED_PARAMETER")
18private fun privateFun(a: Any?) = privateConst
19
20// access
21private class PrivateClassInPart {
22 internal fun accessUsage() {
23 privateFun(privateVal)
24 privateFun(privateVar)
25 privateFun(privateConst)
26 }
27
28}