[scala] super.type

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

[scala] super.type

by Mushtaq Ahmed :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Similar to this.type, does Scala have anything to represent the type of super. Something like super.type?


Re: [scala] super.type

by Seth Tisue :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>>>>> "Mushtaq" == Mushtaq Ahmed <mushtaq.a@...> writes:

 Mushtaq> Similar to this.type, does Scala have anything to represent
 Mushtaq> the type of super. Something like super.type?

I suspect you have misunderstood what "this.type" means.  It refers to a
singleton type, not to any more general type.

--
Seth Tisue @ Northwestern University / http://tisue.net
lead developer, NetLogo: http://ccl.northwestern.edu/netlogo/