diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/disabled/pos/code.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/disabled/pos/code.scala b/test/disabled/pos/code.scala index 57292c32df..e9e458ac10 100644 --- a/test/disabled/pos/code.scala +++ b/test/disabled/pos/code.scala @@ -7,10 +7,10 @@ object Test extends App { fun } val code = foo(List(2)) - val tree = foo(List(2)code.tree.asInstanceOf[scala.reflect.runtime.Mirror.Tree] - val targetType = code.manifest.tpe + val tree = code.tree.asInstanceOf[scala.reflect.runtime.Mirror.Tree] + val targetType = code.manifest.tpe.asInstanceOf[scala.reflect.runtime.Mirror.Type] val reporter = new StoreReporter - val toolbox = new ToolBox(reporter) + val toolbox = new ToolBox(reporter, args mkString " ") val ttree = toolbox.typeCheck(tree, targetType) if (reporter.infos.nonEmpty) { reporter.infos foreach println |