summaryrefslogtreecommitdiff
path: root/test/pending/run/t5277_1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/run/t5277_1.scala')
-rw-r--r--test/pending/run/t5277_1.scala21
1 files changed, 0 insertions, 21 deletions
diff --git a/test/pending/run/t5277_1.scala b/test/pending/run/t5277_1.scala
deleted file mode 100644
index 57acd699ff..0000000000
--- a/test/pending/run/t5277_1.scala
+++ /dev/null
@@ -1,21 +0,0 @@
-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{
- def fact(n: Int): BigInt =
- if (n == 0) 1 else fact(n-1) * n
- class Factorizer(n: Int) {
- def ! = fact(n)
- }
- implicit def int2fact(n: Int) = new Factorizer(n)
-
- println("10! = " + (10!))
- };
-
- val reporter = new ConsoleReporter(new Settings)
- val toolbox = new ToolBox(reporter)
- val ttree = toolbox.typeCheck(code.tree)
- toolbox.runExpr(ttree)
-}