This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Re: type alias at top level ; package

No replies
Jason Zaugg
Joined: 2009-05-18,
User offline. Last seen 38 weeks 5 days ago.
On Mon, Dec 5, 2011 at 6:10 PM, Marius Danciu <marius [dot] danciu [at] gmail [dot] com> wrote:
You can use package objects for this.
package object Foo {  type X = Int}

More info:
http://www.scala-lang.org/docu/files/packageobjects/packageobjects.html 

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland