Files
kotlin-fork/idea/testData/highlighter/deprecated/RangeTo.kt
T
2015-09-25 19:20:20 +03:00

22 lines
413 B
Kotlin
Vendored

class MyClass {
val i = 1
}
@Deprecated("Use A instead") operator 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="[DEPRECATED_SYMBOL_WITH_MESSAGE] 'rangeTo(MyClass): Iterable<Int>' is deprecated. Use A instead">..</warning>x2) {
}
}
// NO_CHECK_INFOS
// NO_CHECK_WEAK_WARNINGS