trait X[+T] { def cls[U >: T]: Class[U] }
Not easy typing that on a phone :)
And any luck with val instead of def?
> Not easy typing that on a phone :)
:)
--
Best Regards,
Volodymyr Kyrychenko
scala> import annotation.unchecked._
import annotation.unchecked._
scala> trait X[+T] { def cls:Class[T @uncheckedVariance] }
defined trait X
-jason