KT-8169 Strange exception when replacing function call to its only argument
#KT-8169 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// "Replace with 'p'" "true"
|
||||
deprecated("", ReplaceWith("p"))
|
||||
fun oldFun(p: Int): Int = p
|
||||
|
||||
fun foo() {
|
||||
<caret>oldFun(0)
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Replace with 'p'" "true"
|
||||
deprecated("", ReplaceWith("p"))
|
||||
fun oldFun(p: Int): Int = p
|
||||
|
||||
fun foo() {
|
||||
<caret>0
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Replace with 'this'" "true"
|
||||
class C {
|
||||
deprecated("", ReplaceWith("this"))
|
||||
fun oldFun(): C = this
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
C().<caret>oldFun()
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Replace with 'this'" "true"
|
||||
class C {
|
||||
deprecated("", ReplaceWith("this"))
|
||||
fun oldFun(): C = this
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
<caret>C()
|
||||
}
|
||||
Reference in New Issue
Block a user