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

19 lines
316 B
Kotlin

class MyClass {
val i = 1
}
deprecated("Use A instead") fun MyClass.rangeTo(i: MyClass): IntIterator {
i.i
throw Exception()
}
fun test() {
val x1 = MyClass()
val x2 = MyClass()
for (i in x1<warning descr="'fun rangeTo(i : MyClass)' is deprecated. Use A instead">..</warning>x2) {
}
}