Type problem

View: New views
2 Messages — Rating Filter:   Alert me  

Type problem

by Naftoli Gugenheim :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

trait A[T <: A[T]]
trait B[T < B[T]] extends A[T]

trait C[T <: A[T]]
A and B are library defined.
How can I instantiate a C?

Re: Type problem

by bearfeeder :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



2009/7/5 Naftoli Gugenhem <naftoligug@...>
trait A[T <: A[T]]
trait B[T < B[T]] extends A[T]

trait C[T <: A[T]]
A and B are library defined.
How can I instantiate a C?

 
trait A[T <: A[T]]

trait B[T <: A[T]] extends A[T]

trait C[T <: A[T]]

class AC extends A[AC]

class BC extends AC with B[AC]

class CC extends C[AC]


--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp