diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-08-19 14:31:13 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-08-19 16:17:41 +0200 |
commit | a90c30cc9e80cfb45cdb6932caa1e518ac2d8bbb (patch) | |
tree | ef0e7d0275114a4a27336da6252a8ddd72e29b26 /plugins/base/src | |
parent | cc8c8d6d92c601e3c3b8ea7b62c39d5dae4839b8 (diff) | |
download | dokka-a90c30cc9e80cfb45cdb6932caa1e518ac2d8bbb.tar.gz dokka-a90c30cc9e80cfb45cdb6932caa1e518ac2d8bbb.tar.bz2 dokka-a90c30cc9e80cfb45cdb6932caa1e518ac2d8bbb.zip |
Reduce test source code to its minimum to reproduce #1341
Diffstat (limited to 'plugins/base/src')
-rw-r--r-- | plugins/base/src/test/kotlin/translators/Bug1341.kt | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/plugins/base/src/test/kotlin/translators/Bug1341.kt b/plugins/base/src/test/kotlin/translators/Bug1341.kt index 5305e6b0..285cd53a 100644 --- a/plugins/base/src/test/kotlin/translators/Bug1341.kt +++ b/plugins/base/src/test/kotlin/translators/Bug1341.kt @@ -22,33 +22,16 @@ class Bug1341 : AbstractCoreTest() { """ /src/com/sample/OtherClass.kt package com.sample - /** - * @suppress - */ class OtherClass internal constructor() { - @kotlin.annotation.Retention(AnnotationRetention.SOURCE) - @IntDef(ELEM_1, ELEM_2, ELEM_3) internal annotation class CustomAnnotation - - companion object { - const val ELEM_1 = 1 - const val ELEM_2 = -1 - const val ELEM_3 = 0 - } } /src/com/sample/ClassUsingAnnotation.java package com.sample - import static sample.OtherClass.ELEM_1; - - /** - * @suppress - */ public class ClassUsingAnnotation { - @OtherClass.CustomAnnotation public int doSomething() { - return ELEM_1; + return 1; } } """.trimIndent(), |