mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
relevant method chain completion: chains ended with casts are valid too
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
interface InspectionManager {
|
||||
static InspectionManager getInstance() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
interface InspectionManagerEx extends InspectionManager {
|
||||
}
|
||||
|
||||
class Test {
|
||||
void m() {
|
||||
InspectionManagerEx m1 = <caret>
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
interface InspectionManager {
|
||||
static InspectionManager getInstance() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
interface InspectionManagerEx extends InspectionManager {
|
||||
}
|
||||
|
||||
class Test {
|
||||
void m() {
|
||||
InspectionManagerEx m1 = (InspectionManagerEx)InspectionManager.getInstance();
|
||||
InspectionManagerEx m2 = (InspectionManagerEx)InspectionManager.getInstance();
|
||||
InspectionManagerEx m3 = (InspectionManagerEx)InspectionManager.getInstance();
|
||||
InspectionManagerEx m4 = (InspectionManagerEx)InspectionManager.getInstance();
|
||||
InspectionManagerEx m5 = (InspectionManagerEx)InspectionManager.getInstance();
|
||||
InspectionManagerEx m6 = (InspectionManagerEx)InspectionManager.getInstance();
|
||||
InspectionManagerEx m7 = (InspectionManagerEx)InspectionManager.getInstance();
|
||||
InspectionManagerEx m8 = (InspectionManagerEx)InspectionManager.getInstance();
|
||||
InspectionManagerEx m9 = (InspectionManagerEx)InspectionManager.getInstance();
|
||||
InspectionManagerEx m0 = (InspectionManagerEx)InspectionManager.getInstance();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user