anonym to lambda: rename conflicting locals (IDEA-120221)

This commit is contained in:
Anna Kozlova
2014-03-26 18:54:40 +01:00
parent 72203e26ef
commit a4f36f237c
3 changed files with 88 additions and 48 deletions
@@ -0,0 +1,9 @@
// "Replace with lambda" "true"
class X1 {
Runnable m() {
String s;
return () -> {
String s1;
};
}
}
@@ -0,0 +1,12 @@
// "Replace with lambda" "true"
class X1 {
Runnable m() {
String s;
return new Run<caret>nable() {
@Override
public void run() {
String s;
}
};
}
}