mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-14 14:11:27 +02:00
24 lines
290 B
Java
24 lines
290 B
Java
class A {}
|
|
interface I {}
|
|
class B extends A implements I {}
|
|
|
|
public class InterfaceCast {
|
|
|
|
public static void main(String[] args) {}
|
|
|
|
void foo(A a, B b, I i) {
|
|
A a0 = a;
|
|
A a1 = b;
|
|
A a2 = (A)i;
|
|
|
|
B b0 = (B)a;
|
|
B b1 = b;
|
|
B b2 = (B)i;
|
|
|
|
I i0 = (I)a;
|
|
I i1 = b;
|
|
I i2 = i;
|
|
}
|
|
}
|
|
|