mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
IDEA-151552 No completion after instanceof inside lambda
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
public class Test {
|
||||
public void f(Object o ) {
|
||||
Runnable r = () -> {
|
||||
if (o instanceof String) {
|
||||
o.leng<caret>
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
public class Test {
|
||||
public void f(Object o ) {
|
||||
if (o instanceof String) {
|
||||
Runnable r = () -> {
|
||||
o.leng<caret>
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
public class Test {
|
||||
public void f(Object o ) {
|
||||
if (o instanceof String) {
|
||||
Runnable r = () -> {
|
||||
((String) o).length()<caret>
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
public class Test {
|
||||
public void f(Object o ) {
|
||||
Runnable r = () -> {
|
||||
if (o instanceof String) {
|
||||
((String) o).length()<caret>
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
+3
@@ -68,4 +68,7 @@ public class FooImpl extends Foo {
|
||||
checkResultByFile(getTestName(false) + "_after.java")
|
||||
}
|
||||
|
||||
public void testCastInstanceofedQualifierInLambda() { doTest() }
|
||||
public void testCastInstanceofedQualifierInLambda2() { doTest() }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user