[SLC] KT-54804 Erase type and drop receiver annotations in $annotations methods

This commit is contained in:
Pavel Mikhailovskii
2023-06-01 18:22:03 +00:00
committed by Space Team
parent 6d06f29326
commit 0ef31501b1
14 changed files with 279 additions and 28 deletions
@@ -0,0 +1,32 @@
// !GENERATE_PROPERTY_ANNOTATIONS_METHODS
annotation class Anno(val p: String = "")
@Deprecated("deprecated")
val deprecated = 0
@Volatile
@Transient
var jvmFlags = 0
class C {
companion object {
@Anno("x")
val x = 1
@JvmStatic
@Anno("y")
val y = 2
}
}
@Anno("propery")
val <T: Any> @receiver:Anno("receiver") List<T>.extensionProperty: Int
get() = 0
@Anno("nullable")
val nullable: String? = null
@Anno("nonNullable")
val nonNullable: String = ""