Files
kotlin-fork/idea/testData/highlighter/deprecated/Get.kt
T
2012-10-24 11:56:43 +04:00

10 lines
244 B
Kotlin

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