mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
IDEA-182417 Smart cast completion fails on a specific declarations
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
interface E { }
|
||||
|
||||
interface Named {
|
||||
String getName();
|
||||
}
|
||||
interface MyNamed extends Named {}
|
||||
|
||||
class X {
|
||||
void foo(E e) {
|
||||
if (e instanceof MyNamed && e.getn<caret>)
|
||||
}
|
||||
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
interface E { }
|
||||
|
||||
interface Named {
|
||||
String getName();
|
||||
}
|
||||
interface MyNamed extends Named {}
|
||||
|
||||
class X {
|
||||
void foo(E e) {
|
||||
if (e instanceof MyNamed && ((MyNamed) e).getName()<caret>)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user