Roman Elizarov | 1f74a2d | 2018-06-29 19:19:45 +0300 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. |
| 3 | */ |
| 4 | |
Vsevolod Tolstopyatov | 74bcc92 | 2018-05-03 20:07:54 +0300 | [diff] [blame] | 5 | package cases.companions |
| 6 | |
| 7 | |
| 8 | object PublicClasses { |
| 9 | class PublicCompanion { |
| 10 | companion object |
| 11 | } |
| 12 | |
| 13 | class ProtectedCompanion { |
| 14 | protected companion object |
| 15 | } |
| 16 | |
| 17 | abstract class AbstractProtectedCompanion { |
| 18 | protected companion object |
| 19 | } |
| 20 | |
| 21 | class InternalCompanion { |
| 22 | internal companion object |
| 23 | } |
| 24 | |
| 25 | class PrivateCompanion { |
| 26 | private companion object |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | object PublicInterfaces { |
| 31 | interface PublicCompanion { |
| 32 | companion object |
| 33 | } |
| 34 | |
| 35 | interface PrivateCompanion { |
| 36 | private companion object |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | |
| 41 | |
| 42 | object InternalClasses { |
| 43 | internal class PublicCompanion { |
| 44 | companion object |
| 45 | } |
| 46 | |
| 47 | internal class ProtectedCompanion { |
| 48 | protected companion object |
| 49 | } |
| 50 | |
| 51 | internal abstract class AbstractProtectedCompanion { |
| 52 | protected companion object |
| 53 | } |
| 54 | |
| 55 | internal class InternalCompanion { |
| 56 | internal companion object |
| 57 | } |
| 58 | |
| 59 | internal class PrivateCompanion { |
| 60 | private companion object |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | object InternalInterfaces { |
| 65 | internal interface PublicCompanion { |
| 66 | companion object |
| 67 | } |
| 68 | |
| 69 | internal interface PrivateCompanion { |
| 70 | private companion object |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | |
| 75 | object PrivateClasses { |
| 76 | private class PublicCompanion { |
| 77 | companion object |
| 78 | } |
| 79 | |
| 80 | private class ProtectedCompanion { |
| 81 | protected companion object |
| 82 | } |
| 83 | |
| 84 | private abstract class AbstractProtectedCompanion { |
| 85 | protected companion object |
| 86 | } |
| 87 | |
| 88 | private class InternalCompanion { |
| 89 | internal companion object |
| 90 | } |
| 91 | |
| 92 | private class PrivateCompanion { |
| 93 | private companion object |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | object PrivateInterfaces { |
| 98 | private interface PublicCompanion { |
| 99 | companion object |
| 100 | } |
| 101 | |
| 102 | private interface PrivateCompanion { |
| 103 | private companion object |
| 104 | } |
| 105 | } |
| 106 | |