Mark deprecated as a warning
#KT-3252 Fixed
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
class MyClass { }
|
||||
class MyClass {
|
||||
val i = 1
|
||||
}
|
||||
|
||||
deprecated("Use A instead") fun MyClass.rangeTo(i: MyClass): IntIterator {
|
||||
i.i
|
||||
throw Exception()
|
||||
}
|
||||
|
||||
@@ -8,7 +11,7 @@ fun test() {
|
||||
val x1 = MyClass()
|
||||
val x2 = MyClass()
|
||||
|
||||
for (i in x1<info descr="'fun rangeTo(i : MyClass)' is deprecated. Use A instead">..</info>x2) {
|
||||
for (i in x1<warning descr="'fun rangeTo(i : MyClass)' is deprecated. Use A instead">..</warning>x2) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user