Extract Function: Do not report "Moving out of scope" warning on nested declarations

This commit is contained in:
Alexey Sedunov
2014-07-04 14:23:52 +04:00
parent 52c107504d
commit 59b33fcba4
6 changed files with 70 additions and 3 deletions
@@ -0,0 +1,13 @@
class T(val n: Int)
// SIBLING:
fun foo() {
<selection>bar { t ->
val k = 1
t.n + k + 1
}</selection>
}
fun bar(f: (T) -> Int) {
}