Files
kotlin-fork/idea/testData/highlighter/deprecated/Get.kt
T
Natalia.Ukhorskaya 9422fea0c4 Mark deprecated as a warning
#KT-3252 Fixed
2013-01-21 16:34:07 +04:00

10 lines
242 B
Kotlin

class MyClass {}
deprecated("Use A instead") fun MyClass.get(i: MyClass): MyClass { return i }
fun test() {
val x1 = MyClass()
val x2 = MyClass()
<warning descr="'fun get(i : MyClass)' is deprecated. Use A instead">x1[x2]</warning>
}