Files
kotlin-fork/idea/testData/quickfix/deprecatedSymbolUsage/classUsages/constructorUsage7.kt.after
T
2020-04-09 15:19:36 +07:00

13 lines
317 B
Plaintext
Vendored

// "Replace usages of 'constructor A(Int)' in whole project" "true"
open class A(val b: String, val i: () -> Int) {
@Deprecated("Replace with primary constructor", ReplaceWith("A(b = \"\") { i }"))
constructor(i: Int) : this("", { i })
}
class B : A<caret>(b = "", { 33 })
fun a() {
A(b = "") { 42 }
}