mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test++
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class A implements I {
|
||||
int method() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
class Client {
|
||||
I getI() { return null; };
|
||||
|
||||
void method() {
|
||||
A a = (A) getI();
|
||||
}
|
||||
|
||||
int anotherMethod() {
|
||||
return ((A) getI()).method();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
interface I {
|
||||
int method();
|
||||
}
|
||||
Reference in New Issue
Block a user