summaryrefslogtreecommitdiff
path: root/test/files/run/bug3376.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-02-28 21:23:59 +0000
committerPaul Phillips <paulp@improving.org>2011-02-28 21:23:59 +0000
commitfdaa0a7a0178eab124d65f96e872c07c4400c94a (patch)
tree2d2e8c1214e7fb253954ac1e73e616d06d9de7e6 /test/files/run/bug3376.scala
parent34719ee9cb51650550cfcf849178cf5da5a93dd5 (diff)
downloadscala-fdaa0a7a0178eab124d65f96e872c07c4400c94a.tar.gz
scala-fdaa0a7a0178eab124d65f96e872c07c4400c94a.tar.bz2
scala-fdaa0a7a0178eab124d65f96e872c07c4400c94a.zip
Break 9 tests, fix 9 tests, realize you broke t...
Break 9 tests, fix 9 tests, realize you broke the test you checked in between +9 and -9. Fix that and generalize the repl tests a little. I think we're all the way there. No review.
Diffstat (limited to 'test/files/run/bug3376.scala')
-rw-r--r--test/files/run/bug3376.scala9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/files/run/bug3376.scala b/test/files/run/bug3376.scala
index 5cff50185c..e2c94e5072 100644
--- a/test/files/run/bug3376.scala
+++ b/test/files/run/bug3376.scala
@@ -1,16 +1,13 @@
import scala.tools.nsc.interpreter._
+import scala.tools.partest.ReplTest
-object Test {
+object Test extends ReplTest {
class M[@specialized T] { }
- val code = """
+ def code = """
|class M[@specialized T] { override def toString = "mmm" }
|val m1 = new M[Int]()
|val m2 = new M[Float]()
|val m3 = new M[String]()
|""".stripMargin
-
- def main(args: Array[String]): Unit = {
- (ILoop run code).lines drop 1 foreach println
- }
}