Created
June 11, 2013 10:00
-
-
Save madbence/5755779 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class App { | |
public interface A { | |
B foo(); | |
} | |
public static class B { | |
B foo() { return null; } | |
} | |
public static class C implements A { | |
private int x; | |
public void baz(B b) {} | |
protected void baz(D d) {} | |
private static void garply() {} | |
public B foo() { return null; } | |
} | |
public static class D extends B { | |
public static double y; | |
public void qux(A a) { ((C)a).baz(null); } | |
} | |
public static class E { | |
protected C z; | |
//itt még van valami Map<String, F>-es bohóckodás | |
public static void grault(E e) {} | |
} | |
public class F extends D { | |
public void bar(D d) {} | |
public void corge() {} | |
} | |
public static void main(String[] args) { | |
D d = new D(); | |
d.qux(new C()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment