diff options
Diffstat (limited to 'test/disabled')
-rw-r--r-- | test/disabled/pos/code.scala | 20 | ||||
-rw-r--r-- | test/disabled/pos/t0651.scala | 4 | ||||
-rw-r--r-- | test/disabled/pos/t531.scala | 10 | ||||
-rw-r--r-- | test/disabled/pos/t532.scala | 10 |
4 files changed, 0 insertions, 44 deletions
diff --git a/test/disabled/pos/code.scala b/test/disabled/pos/code.scala deleted file mode 100644 index 96d49106fa..0000000000 --- a/test/disabled/pos/code.scala +++ /dev/null @@ -1,20 +0,0 @@ -import reflect.runtime.Mirror.ToolBox -import scala.tools.nsc.reporters._ -import scala.tools.nsc.Settings - -object Test extends App { - def foo(ys: List[Int]) = { - val fun: reflect.Code[Int => Int] = x => x + ys.length - fun - } - val code = foo(List(2)) - val tree = code.tree.asInstanceOf[scala.reflect.runtime.Mirror.Tree] - val targetType = code.manifest.tpe.asInstanceOf[scala.reflect.runtime.Mirror.Type] - println("testing: "+tree) - val reporter = new ConsoleReporter(new Settings) - val toolbox = new ToolBox(reporter, args mkString " ") - val ttree = toolbox.typeCheck(tree, targetType) - println("result = "+ttree) -} - - diff --git a/test/disabled/pos/t0651.scala b/test/disabled/pos/t0651.scala deleted file mode 100644 index 52bef7e02b..0000000000 --- a/test/disabled/pos/t0651.scala +++ /dev/null @@ -1,4 +0,0 @@ -object Reflection1 extends App { - case class Element(name: String) - println(reflect.Code.lift({val e = Element("someName"); e}).tree) -} diff --git a/test/disabled/pos/t531.scala b/test/disabled/pos/t531.scala deleted file mode 100644 index 02763e08f1..0000000000 --- a/test/disabled/pos/t531.scala +++ /dev/null @@ -1,10 +0,0 @@ -object Test extends App { - import scala.reflect._; - def titi = { - var truc = 0 - val tata: Code[()=>Unit] = () => { - truc = 6 - } - () - } -} diff --git a/test/disabled/pos/t532.scala b/test/disabled/pos/t532.scala deleted file mode 100644 index 32649b1629..0000000000 --- a/test/disabled/pos/t532.scala +++ /dev/null @@ -1,10 +0,0 @@ -object Test extends App { - import scala.reflect._; - def titi: Unit = { - var truc = 0 - val tata: Code[()=>Unit] = () => { - truc = truc + 6 - } - () - } -} |