create local from usage: check containing code block (IDEA-178443)

This commit is contained in:
Anna Kozlova
2017-09-04 18:21:54 +03:00
parent 0e7118f5de
commit ed9b3db88f
3 changed files with 11 additions and 6 deletions

View File

@@ -0,0 +1,6 @@
// "Create local variable 'x'" "true"
class other {
Runnable field = () -> {
Object x;
x};
}

View File

@@ -0,0 +1,4 @@
// "Create local variable 'x'" "true"
class other {
Runnable field = () -> {<caret>x};
}