Skip to content

Instantly share code, notes, and snippets.

@mzp
Created March 30, 2010 08:58
Show Gist options
  • Save mzp/348932 to your computer and use it in GitHub Desktop.
Save mzp/348932 to your computer and use it in GitHub Desktop.
object Obj{
type T = {
/** */
def f : Unit
}
}
$ scala -version
Scala code runner version 2.7.7.final -- Copyright 2002-2009, LAMP/EPFL
$ scalac foo.scala
foo.scala:6: error: only declarations allowed here
def f : Unit
^
one error found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment