Skip to content

Commit

Permalink
Tests for recently submitted SI-5334
Browse files Browse the repository at this point in the history
  • Loading branch information
xeno-by committed Dec 23, 2011
1 parent 5ee9a14 commit 98b0bcc
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/pending/run/t5334_1.scala
@@ -0,0 +1,15 @@
import scala.tools.nsc.reporters._
import scala.tools.nsc.Settings
import reflect.runtime.Mirror.ToolBox

object Test extends App {
val code = scala.reflect.Code.lift{
class C
new C
};

val reporter = new ConsoleReporter(new Settings)
val toolbox = new ToolBox(reporter)
val ttree = toolbox.typeCheck(code.tree)
toolbox.runExpr(ttree)
}
15 changes: 15 additions & 0 deletions test/pending/run/t5334_2.scala
@@ -0,0 +1,15 @@
import scala.tools.nsc.reporters._
import scala.tools.nsc.Settings
import reflect.runtime.Mirror.ToolBox

object Test extends App {
val code = scala.reflect.Code.lift{
class C
List((new C, new C))
};

val reporter = new ConsoleReporter(new Settings)
val toolbox = new ToolBox(reporter)
val ttree = toolbox.typeCheck(code.tree)
toolbox.runExpr(ttree)
}

0 comments on commit 98b0bcc

Please sign in to comment.