From a90c30cc9e80cfb45cdb6932caa1e518ac2d8bbb Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Wed, 19 Aug 2020 14:31:13 +0200 Subject: Reduce test source code to its minimum to reproduce #1341 --- plugins/base/src/test/kotlin/translators/Bug1341.kt | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'plugins/base') 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(), -- cgit