Advertisement
JoelSjogren

Untitled

Nov 11th, 2012
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1. class A {
  2.     class X { }
  3. }
  4.  
  5. class B extends A {
  6.     class X extends A.X { }
  7. }
  8.  
  9. ...
  10. ax = bx; // List<A.X> = List<B.X> <---- Error
  11.  
  12. /* This is the error above:
  13.  *
  14.  * Type mismatch: cannot convert from List<B.X>
  15.  * to List<A.X>
  16.  */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement