Extract Function: Do not report "Moving out of scope" warning on nested declarations
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
class T(val n: Int)
|
||||
|
||||
// SIBLING:
|
||||
fun foo() {
|
||||
<selection>if (true) {
|
||||
val k = 1
|
||||
T().n + k + 1
|
||||
}</selection>
|
||||
}
|
||||
Reference in New Issue
Block a user