- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Re: type alias at top level ; package
Mon, 2011-12-05, 18:12
On Mon, Dec 5, 2011 at 6:10 PM, Marius Danciu <marius [dot] danciu [at] gmail [dot] com> wrote:
More info:
http://www.scala-lang.org/docu/files/packageobjects/packageobjects.html
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








