Skip to content

Instantly share code, notes, and snippets.

@mads-hartmann
Created December 19, 2011 22:01
Show Gist options
  • Save mads-hartmann/1499095 to your computer and use it in GitHub Desktop.
Save mads-hartmann/1499095 to your computer and use it in GitHub Desktop.
Scala class definition example to use when defining syntax hightlighting
class C
class C{}
class C(){}
class C(c: String, i: Integer)
class C(val c: String)
class C(private val c: String)
class C(private[this] val c: String)
class C(val c: Pair[A,List[B]], b: String)
class C[A]
private class C(private[this] val c: String)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment