Hallo all the beautiful people in this forum :-)
I am desperatelly trying to understand how generics do work and this problem puzzles me!
Why does this code
run and give an exception back?:
I would expect that as with
F extends Comparable<F>
the compiler would protest:
He infers Number as global common Ancestor und this doesn't implement Comparable. OK. But why in the first case infers the compiler differently??
Thank you for your help in advance!
Greetings
Fabio