Few fixes to Introduce Variable (no new features added)
Added few tests to Introduce Variable More strict requirements for expressions to introduce it.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
*/
|
||||
Reference in New Issue
Block a user