0

I must admit, I don't get this error:

public <S extends A> Class<S> foo(){
    return A.class;
}

Will result in a "incompatible types"-error.

Expected: Class<S>
Found: Class<A>

What am I doing wrong?

User1291
  • 7,664
  • 8
  • 51
  • 108

0 Answers0