Files
kotlin-fork/compiler/testData/codegen/bytecodeListing/deprecatedConstantPropertyInterfaceCompanion.kt
T
Mads Ager 636024f676 [JVM] Retain deprecated status for interface companion const property.
Create the field directly and maintain the fact that its corresponding
property is the companion object property. That property has the
deprecated annotation which puts the deprecated marker on the field
when code generating the field.

^KT-54840 Fixed
2022-11-09 23:15:31 +01:00

13 lines
194 B
Kotlin
Vendored

interface A {
companion object {
@Deprecated("no")
const val s = "yes"
}
}
class B {
companion object {
@Deprecated("no")
const val s = "yes"
}
}