8000 Tests for recently submitted SI-5334 · scala/scala@98b0bcc · GitHub
[go: up one dir, main page]

Skip to content

Commit 98b0bcc

Browse files
committed
Tests for recently submitted SI-5334
1 parent 5ee9a14 commit 98b0bcc

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

test/pending/run/t5334_1.scala

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import scala.tools.nsc.reporters._
2+
import scala.tools.nsc.Settings
3+
import reflect.runtime.Mirror.ToolBox
4+
5+
object Test extends App {
6+
val code = scala.reflect.Code.lift{
7+
class C
8+
new C
9+
};
10+
11+
val reporter = new ConsoleReporter(new Settings)
12+
val toolbox = new ToolBox(reporter)
13+
val ttree = toolbox.typeCheck(code.tree)
14+
toolbox.runExpr(ttree)
15+
}

test/pending/run/t5334_2.scala

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import scala.tools.nsc.reporters._
2+
import scala.tools.nsc.Settings
3+
import reflect.runtime.Mirror.ToolBox
4+
5+
object Test extends App {
6+
val code = scala.reflect.Code.lift{
7+
class C
8+
List((new C, new C))
9+
};
10+
11+
val reporter = new ConsoleReporter(new Settings)
12+
val toolbox = new ToolBox(reporter)
13+
val ttree = toolbox.typeCheck(code.tree)
14+
toolbox.runExpr(ttree)
15+
}

0 commit comments

Comments
 (0)
0