diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-05-11 18:29:35 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-05-11 18:29:35 +0300 |
commit | 022a6a6bc9a1d61f190715dec56c3bef31887388 (patch) | |
tree | 5e30f2c8b233b2e6a607b5cc16730c8c6ffa35ba /core/src/test/kotlin/model | |
parent | 281477a1f14214d5ef6cf246ee0a72697503ef03 (diff) | |
download | dokka-022a6a6bc9a1d61f190715dec56c3bef31887388.tar.gz dokka-022a6a6bc9a1d61f190715dec56c3bef31887388.tar.bz2 dokka-022a6a6bc9a1d61f190715dec56c3bef31887388.zip |
Do not publish private companion object members in public only mode
#KT-16418 fixed
Diffstat (limited to 'core/src/test/kotlin/model')
-rw-r--r-- | core/src/test/kotlin/model/ClassTest.kt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/src/test/kotlin/model/ClassTest.kt b/core/src/test/kotlin/model/ClassTest.kt index fb225728..f8baf251 100644 --- a/core/src/test/kotlin/model/ClassTest.kt +++ b/core/src/test/kotlin/model/ClassTest.kt @@ -280,4 +280,14 @@ class ClassTest { } } } + + @Test fun privateCompanionObject() { + verifyModel("testdata/classes/privateCompanionObject.kt", includeNonPublic = false) { model -> + with(model.members.single().members.single()) { + assertEquals(0, members(NodeKind.CompanionObjectFunction).size) + assertEquals(0, members(NodeKind.CompanionObjectProperty).size) + } + } + } + } |