6fe52d15b4
Added few tests to Introduce Variable More strict requirements for expressions to introduce it.
16 lines
186 B
Kotlin
16 lines
186 B
Kotlin
fun a(op: (Int) -> Int) {}
|
|
fun b() {
|
|
a {it}
|
|
a {
|
|
<selection>it</selection>
|
|
}
|
|
}
|
|
/*
|
|
fun a(op: (Int) -> Int) {}
|
|
fun b() {
|
|
a {it}
|
|
a {
|
|
val i = it
|
|
}
|
|
}
|
|
*/ |