mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
add tests for completion with casts
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
interface Editor {}
|
||||
interface EditorEx extends Editor {
|
||||
MarkupModelEx getMarkupModel();
|
||||
}
|
||||
interface MarkupModelEx {}
|
||||
|
||||
class Test {
|
||||
void m(Editor editor) {
|
||||
MarkupModelEx m = <caret>
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
interface Editor {}
|
||||
interface EditorEx extends Editor {
|
||||
MarkupModelEx getMarkupModel();
|
||||
}
|
||||
interface MarkupModelEx {}
|
||||
|
||||
class Test {
|
||||
void m(Editor editor) {
|
||||
((EditorEx)editor).getMarkupModel();
|
||||
((EditorEx)editor).getMarkupModel();
|
||||
((EditorEx)editor).getMarkupModel();
|
||||
((EditorEx)editor).getMarkupModel();
|
||||
((EditorEx)editor).getMarkupModel();
|
||||
((EditorEx)editor).getMarkupModel();
|
||||
((EditorEx)editor).getMarkupModel();
|
||||
((EditorEx)editor).getMarkupModel();
|
||||
((EditorEx)editor).getMarkupModel();
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
interface InspectionManager {
|
||||
static InspectionManager getInstance() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
interface InspectionManagerEx extends InspectionManager {
|
||||
GlobalInspectionContext createContext();
|
||||
}
|
||||
interface GlobalInspectionContext {}
|
||||
|
||||
class Test {
|
||||
void m() {
|
||||
GlobalInspectionContext c = <caret>
|
||||
}
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
interface InspectionManager {
|
||||
static InspectionManager getInstance() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
interface InspectionManagerEx extends InspectionManager {
|
||||
GlobalInspectionContext createContext();
|
||||
}
|
||||
interface GlobalInspectionContext {}
|
||||
|
||||
class Test {
|
||||
void m() {
|
||||
((InspectionManagerEx)InspectionManager.getInstance()).createContext();
|
||||
((InspectionManagerEx)InspectionManager.getInstance()).createContext();
|
||||
((InspectionManagerEx)InspectionManager.getInstance()).createContext();
|
||||
((InspectionManagerEx)InspectionManager.getInstance()).createContext();
|
||||
((InspectionManagerEx)InspectionManager.getInstance()).createContext();
|
||||
((InspectionManagerEx)InspectionManager.getInstance()).createContext();
|
||||
((InspectionManagerEx)InspectionManager.getInstance()).createContext();
|
||||
((InspectionManagerEx)InspectionManager.getInstance()).createContext();
|
||||
((InspectionManagerEx)InspectionManager.getInstance()).createContext();
|
||||
((InspectionManagerEx)InspectionManager.getInstance()).createContext();
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
interface Editor {}
|
||||
interface EditorEx extends Editor {
|
||||
MarkupModelEx getMarkupModel();
|
||||
}
|
||||
interface MarkupModelEx {}
|
||||
|
||||
class Test {
|
||||
void m() {
|
||||
MarkupModelEx m = <caret>
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
interface Editor {}
|
||||
interface EditorEx extends Editor {
|
||||
MarkupModelEx getMarkupModel();
|
||||
}
|
||||
interface MarkupModelEx {}
|
||||
|
||||
class Test {
|
||||
void m(Editor editor) {
|
||||
((EditorEx)editor).getMarkupModel();
|
||||
((EditorEx)editor).getMarkupModel();
|
||||
((EditorEx)editor).getMarkupModel();
|
||||
((EditorEx)editor).getMarkupModel();
|
||||
((EditorEx)editor).getMarkupModel();
|
||||
((EditorEx)editor).getMarkupModel();
|
||||
((EditorEx)editor).getMarkupModel();
|
||||
((EditorEx)editor).getMarkupModel();
|
||||
((EditorEx)editor).getMarkupModel();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user