Files
kotlin-fork/idea/testData/highlighter/deprecated/RangeTo.kt
T
2014-03-02 19:55:24 +04:00

22 lines
362 B
Kotlin

class MyClass {
val i = 1
}
deprecated("Use A instead") fun MyClass.rangeTo(i: MyClass): Iterable<Int> {
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) {
}
}
// NO_CHECK_INFOS
// NO_CHECK_WEAK_WARNINGS