introduce variable: remove reference to created variable if declaration was inserted inside loop body (IDEA-146842)

This commit is contained in:
Anna Kozlova
2015-10-27 19:35:17 +01:00
parent 08dfab6ea6
commit 583b5af087
5 changed files with 49 additions and 14 deletions
@@ -0,0 +1,8 @@
class Foo {
public static void main(String[] args) {
Runnable r = () -> {
String s = args.toString();
}
}
}
@@ -0,0 +1,6 @@
class Foo {
public static void main(String[] args) {
Runnable r = () -> <selection>args.toString()</selection>
}
}