Files
kotlin/idea/testData/quickfix/deprecatedSymbolUsage/functionLiteralArguments/cannotKeepOutside.kt
2015-09-04 18:19:31 +03:00

13 lines
276 B
Kotlin
Vendored

// "Replace with 'newFun(p1, p2)'" "true"
interface I {
@Deprecated("", ReplaceWith("newFun(p1, p2)"))
fun oldFun(p1: String, p2: () -> Boolean)
fun newFun(p1: String, p2: () -> Boolean, p3: String? = null)
}
fun foo(i: I) {
i.<caret>oldFun("a") { true }
}