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