Advertisement
Guest User

undecidable type comparison

a guest
Apr 27th, 2015
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1. public class Test1 {
  2.  
  3.     interface Type<T> {}
  4.  
  5.     class C implements Type<Type<? super C>> {}
  6.  
  7.     class D<P> implements Type<Type<? super D<D<P>>>> {}
  8.  
  9.     class Test {
  10.         Type<? super C> c = new C();
  11.         Type<? super D<Byte>> d = new D<Byte>();
  12.     }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement