diff options
author | Martin Odersky <odersky@gmail.com> | 2011-10-24 16:34:55 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-10-24 16:34:55 +0000 |
commit | ffb65f00615ba524298b39e676debf45af4a13cb (patch) | |
tree | c77b0888768910222cb2f0a0c82c30c3f11c03a0 /test/disabled | |
parent | 170089943bb7d447b28691b96eb8422b67e20720 (diff) | |
download | scala-ffb65f00615ba524298b39e676debf45af4a13cb.tar.gz scala-ffb65f00615ba524298b39e676debf45af4a13cb.tar.bz2 scala-ffb65f00615ba524298b39e676debf45af4a13cb.zip |
First end-to-end implementation of a runtime re...
First end-to-end implementation of a runtime reflexive compiler that
generates and loads bytecodes. Review by szeiger.
Diffstat (limited to 'test/disabled')
-rw-r--r-- | test/disabled/run/code.scala | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/test/disabled/run/code.scala b/test/disabled/run/code.scala deleted file mode 100644 index 8881c2eda8..0000000000 --- a/test/disabled/run/code.scala +++ /dev/null @@ -1,52 +0,0 @@ -import scala.tools.partest.utils.CodeTest - -case class Element(name: String) - -object Test extends App { - case class InnerElement(name: String) - def foo[T](ys: List[T]) = { - val fun: reflect.Code[Int => Int] = x => x + ys.length - fun - } - CodeTest(foo(List(2)), args) - CodeTest({() => val e = Element("someName"); e}, args) -// CodeTest({() => val e = InnerElement("someName"); e}, args) // (does not work yet) - def titi() = { - var truc = 0 - CodeTest(() => { - truc = 6 - }, args) - } - def tata(): Unit = { - var truc = 0 - CodeTest(() => { - truc = truc + 6 - }, args) - } - titi() - tata() - new baz.A(args) - - def show() { - def foo[T](ys: List[T]) = { - val fun: reflect.Code[Int => Int] = x => x + ys.length - CodeTest(fun, args) - } - foo(List(1, 2, 3)) - } - - show() -} - -package baz { - - case class BazElement(name: String) { } - - class A(args: Array[String]) { - CodeTest(() => new baz.BazElement("someName"), args) - } - -} - - - |