Add test reproducing KT-49087 and KT-49069

This commit is contained in:
Mikhail Glukhikh
2021-10-06 10:47:54 +03:00
committed by teamcityserver
parent d0a70e5cc0
commit 39fe457f91
5 changed files with 69 additions and 0 deletions
@@ -0,0 +1,13 @@
// FILE: test.kt
@Target(AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.CONSTRUCTOR)
annotation class KotlinMessage
data class KotlinResult @KotlinMessage constructor(@get:KotlinMessage <!REPEATED_ANNOTATION!>@KotlinMessage<!> val message: String = "")
open class Some {
companion object {
<!INAPPLICABLE_JVM_NAME!>@get:JvmName("getInstance")<!>
<!NON_FINAL_MEMBER_IN_OBJECT!>open<!> val INSTANCE: String
get() = "Omega"
}
}