diff options
author | Paul Phillips <paulp@improving.org> | 2011-10-21 22:59:31 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-10-21 22:59:31 +0000 |
commit | 0172051d24698dc91210bfcdeec53638ed222b07 (patch) | |
tree | b69c21a470889a772db4ece5958951fdf9299c5e /test/files/run/code.scala | |
parent | ad3dada12c9f4d23e58de19022b527e872db4308 (diff) | |
download | scala-0172051d24698dc91210bfcdeec53638ed222b07.tar.gz scala-0172051d24698dc91210bfcdeec53638ed222b07.tar.bz2 scala-0172051d24698dc91210bfcdeec53638ed222b07.zip |
Disabled failing "code" test.
This has been failing the Xcheckinit build for weeks and is now failing
the regular build too. I'm checking in some hairy stuff and I'd like to
make a good impression on it. Review by odersky.
Diffstat (limited to 'test/files/run/code.scala')
-rw-r--r-- | test/files/run/code.scala | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/test/files/run/code.scala b/test/files/run/code.scala deleted file mode 100644 index 8881c2eda8..0000000000 --- a/test/files/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) - } - -} - - - |