Accessing Case Class - Subclasses

18 views
Skip to first unread message

jkl...@gmail.com

unread,
Oct 28, 2013, 7:33:09 PM10/28/13
to mac...@googlegroups.com
Is there a way to access a case class' subclass directly, without the using the parent name?

For instance, using the Cons List in your example, is there a way to make it so I can just type n = Nil() instead of n = List.Nil()?

Thanks!
Reply all
Reply to author
Forward
0 new messages