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,9 @@
class T(val n: Int)
// SIBLING:
fun foo() {
<selection>if (true) {
val k = 1
T().n + k + 1
}</selection>
}