c34b417d0c
#KT-34744
24 lines
420 B
Plaintext
Vendored
24 lines
420 B
Plaintext
Vendored
// "Replace with 'useSimple(simple(init))'" "true"
|
|
|
|
fun simple(param: Int = 0, init: () -> Unit): Int {
|
|
init()
|
|
return param
|
|
}
|
|
|
|
@Deprecated("Use useSimple instead", ReplaceWith("useSimple(simple(init))"))
|
|
fun use(init: () -> Unit): Int {
|
|
init()
|
|
return 0
|
|
}
|
|
|
|
fun useSimple(s: Int): Int {
|
|
return s
|
|
}
|
|
|
|
fun println(s: String) {}
|
|
|
|
fun useIt() {
|
|
val t = useSimple(simple {
|
|
println("abc")
|
|
})
|
|
} |