Tag Archives: scala

Scala without covariance

Without covariance  (In presence of Invarinace )  class Test[T]    var x:Test[Any] = new Test[Nothing] //error doom ,what you see   Nothing <: Any, but class Test is invariant in type T.   Verbose : Nothing is subclass of Any but … Continue reading

Posted in Uncategorized | Tagged | Leave a comment