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
+2 -2
View File
@@ -1,10 +1,10 @@
class MyClass {}
deprecated("Use A instead") fun MyClass.get(i: MyClass): MyClass { return MyClass() }
deprecated("Use A instead") fun MyClass.get(i: MyClass): MyClass { return i }
fun test() {
val x1 = MyClass()
val x2 = MyClass()
<info descr="'fun get(i : MyClass)' is deprecated. Use A instead">x1[x2]</info>
<warning descr="'fun get(i : MyClass)' is deprecated. Use A instead">x1[x2]</warning>
}