let's consider:
public class Text extends BinaryComparable
implements WritableComparable<BinaryComparable> {
We can see that Text
is BinaryComparable
.
Then, let's consider
@InterfaceAudience.Public
@InterfaceStability.Stable
public interface WritableComparable<T> extends Writable, Comparable<T> {
I have some class in Scala:
trait MyClass[A <: WritableComparable[A]] {
It is not possible to create
MyClass[Text] = new MyClass[Text]()
due to type mismatch. Why? After all, Text
is BinaryComparable
How to resolve it?