relevant method chain completion: chains ended with casts are valid too

This commit is contained in:
Dmitry Batkovich
2017-09-25 17:35:44 +03:00
parent 4ddca30168
commit 87e841ef88
12 changed files with 220 additions and 91 deletions
@@ -0,0 +1,13 @@
interface InspectionManager {
static InspectionManager getInstance() {
return null;
}
}
interface InspectionManagerEx extends InspectionManager {
}
class Test {
void m() {
InspectionManagerEx m1 = <caret>
}
}
@@ -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();
}
}