VERY rough implementation of annotations with parameters in ReplaceWIth pattern
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
// "Replace with 'NewClass(p + 1)'" "true"
|
||||
package ppp
|
||||
|
||||
@Deprecated("", ReplaceWith("NewClass(p + 1)"))
|
||||
class OldClass(p: Int)
|
||||
|
||||
class NewClass(p: Int)
|
||||
|
||||
fun foo() {
|
||||
<caret>NewClass(1 + 1)
|
||||
}
|
||||
Reference in New Issue
Block a user