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