Skip to content

Instantly share code, notes, and snippets.

@xeno-by
Created January 15, 2014 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xeno-by/8439164 to your computer and use it in GitHub Desktop.
Save xeno-by/8439164 to your computer and use it in GitHub Desktop.
19:15 ~/Projects/Master/sandbox (master)$ scala
Welcome to Scala version 2.11.0-20140115-080235-07e823ad97 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_65).
Type in expressions to have them evaluated.
Type :help for more information.
scala> q"class C(x: Int)"
res0: reflect.runtime.universe.ClassDef =
class C extends scala.AnyRef {
<paramaccessor> private[this] val x: Int = _;
def <init>(x: Int) = {
super.<init>();
()
}
}
scala> showCode(res0)
res1: String = class C(x: Int)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment