Created
December 19, 2011 22:01
-
-
Save mads-hartmann/1499095 to your computer and use it in GitHub Desktop.
Scala class definition example to use when defining syntax hightlighting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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