diff options
author | Martin Odersky <odersky@gmail.com> | 2011-09-21 16:24:12 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-09-21 16:24:12 +0000 |
commit | dfd19afc50a7e8a93656c5678acf687745eb6706 (patch) | |
tree | 70d63f4b32477a4a86cd2d8d2d0bc887476ca130 /src/library | |
parent | 4e3a9a64a866df42ca3fd99dfc76a2cd9f1f7562 (diff) | |
download | scala-dfd19afc50a7e8a93656c5678acf687745eb6706.tar.gz scala-dfd19afc50a7e8a93656c5678acf687745eb6706.tar.bz2 scala-dfd19afc50a7e8a93656c5678acf687745eb6706.zip |
Started work on compiler toolbox that can compi...
Started work on compiler toolbox that can compile reflect trees at
runtime.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/reflect/Code.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/reflect/Code.scala b/src/library/scala/reflect/Code.scala index ed20e242fd..ba9e9e33d5 100644 --- a/src/library/scala/reflect/Code.scala +++ b/src/library/scala/reflect/Code.scala @@ -11,8 +11,8 @@ package scala.reflect /** This type is required by the compiler and <b>should not be used in client code</b>. */ -class Code[T](val tree: scala.reflect.mirror.Tree) { - +class Code[T: Manifest](val tree: scala.reflect.mirror.Tree) { + val manifest = implicitly[Manifest[T]] } /** This type is required by the compiler and <b>should not be used in client code</b>. */ |