Mark deprecated as a warning

#KT-3252 Fixed
This commit is contained in:
Natalia.Ukhorskaya
2013-01-21 16:34:07 +04:00
parent d7c8655966
commit 9422fea0c4
15 changed files with 100 additions and 87 deletions
@@ -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) {
}
}