Mark deprecated as a warning
#KT-3252 Fixed
This commit is contained in:
@@ -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>
|
||||
}
|
||||
Reference in New Issue
Block a user