Files
kotlin-fork/idea/testData/highlighter/deprecated/Getter.kt
T
Natalia.Ukhorskaya 62d8153ada Map java.land.Deprecated to jet.deprecated
Change testData for deprecated annotation
 #KT-2947 Fixed
2012-10-18 19:14:04 +04:00

19 lines
704 B
Kotlin

fun test() {
val c = MyClass()
c.<info descr="'getter for test1' is deprecated">test1</info>
c.<info descr="'getter for test2' is deprecated">test2</info>
c.test2 = ""
c.<info descr="'val test3' is deprecated">test3</info>
}
class MyClass() {
<info>public</info> val <info>test1</info>: String = ""
[deprecated("'getter for test1' is deprecated")] <info>get</info>
<info>public</info> var <info>test2</info>: String = ""
[deprecated("'getter for test2' is deprecated")] <info>get</info>
deprecated("'val test3' is deprecated") <info>public</info> val <info>test3</info>: String = ""
[deprecated("'getter for test3' is deprecated")] <info>get</info>
}