[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
This commit is contained in:
committed by
Alexander Udalov
parent
7b3ce35613
commit
636024f676
+13
@@ -0,0 +1,13 @@
|
||||
interface A {
|
||||
companion object {
|
||||
@Deprecated("no")
|
||||
const val s = "yes"
|
||||
}
|
||||
}
|
||||
|
||||
class B {
|
||||
companion object {
|
||||
@Deprecated("no")
|
||||
const val s = "yes"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user