I wonder if you could write something like the following in Scala:
abstract class Foo
trait Bar {
type Foo_Tpe <: Foo : Manifest[Foo_Tpe]
def fooClass = classOf[Foo_Tpe]
}
I wonder if you could write something like the following in Scala:
abstract class Foo
trait Bar {
type Foo_Tpe <: Foo : Manifest[Foo_Tpe]
def fooClass = classOf[Foo_Tpe]
}
Yes and no. You can do this:
At which point it will tell you it doesn't have a manifest for that.