KT-43370 ACC_DEPRECATED on property accessors implemented by delegation
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
interface IFoo {
|
||||
@Deprecated("")
|
||||
val prop: String get() = ""
|
||||
|
||||
@Deprecated("")
|
||||
val String.extProp: String get() = ""
|
||||
}
|
||||
|
||||
interface IFoo2 : IFoo
|
||||
|
||||
class Delegated(foo: IFoo) : IFoo by foo
|
||||
|
||||
class Delegated2(foo2: IFoo2) : IFoo2 by foo2
|
||||
|
||||
class DefaultImpl : IFoo
|
||||
|
||||
class DefaultImpl2 : IFoo2
|
||||
|
||||
class ExplicitOverride : IFoo {
|
||||
override val prop: String get() = ""
|
||||
override val String.extProp: String get() = ""
|
||||
}
|
||||
|
||||
class ExplicitOverride2 : IFoo2 {
|
||||
override val prop: String get() = ""
|
||||
override val String.extProp: String get() = ""
|
||||
}
|
||||
Reference in New Issue
Block a user