CallableUsageReplacementStrategy: support KtSuperTypeCallEntry

#KT-37849 Fixed
This commit is contained in:
Dmitry Gridin
2020-04-01 19:32:25 +07:00
parent aec3c22497
commit 9d8d881bff
29 changed files with 306 additions and 22 deletions
@@ -0,0 +1,12 @@
// "Replace with 'A(s = "", i = { i }, i2 = 33)'" "true"
open class A(val s: String, val i: () -> Int, val i2: Int) {
@Deprecated("Replace with primary constructor", ReplaceWith("A(s = \"\", i = { i }, i2 = 33)"))
constructor(i: Int) : this("", { i }, i)
}
class B : A<caret>(i = 42)
fun a() {
A(42)
}