inline local with rename conflicts inside lambda (IDEA-143340)

This commit is contained in:
Anna Kozlova
2015-08-18 12:34:35 +02:00
parent c58dd5c881
commit 67bfb2b357
5 changed files with 61 additions and 26 deletions
@@ -0,0 +1,13 @@
class MyClass {
void m() {
Consumer c = o -> {
System.out.println(o);
};
Object o = null;
Consumer cc = <caret>c;
}
}
interface Consumer {
void accept(Object o);
}
@@ -0,0 +1,12 @@
class MyClass {
void m() {
Object o = null;
Consumer cc = o1 -> {
System.out.println(o1);
};
}
}
interface Consumer {
void accept(Object o);
}