mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Converted from the relevant intention Reported cases: one-liners, whens Also, more exact caret detection in local inspection tests GitOrigin-RevId: 54bd543ad28125e4089fb4b43702701fcb3dfe08
12 lines
215 B
Kotlin
12 lines
215 B
Kotlin
// IS_APPLICABLE: true
|
|
|
|
fun <T> run(f: () -> T) = f()
|
|
fun whenExpr(flag: Boolean) {
|
|
<caret>run {
|
|
println("run")
|
|
if (flag) {
|
|
println("flag")
|
|
}
|
|
}
|
|
}
|
|
fun println(s: String) {} |