diff options
author | Paul Phillips <paulp@improving.org> | 2011-02-04 08:29:20 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-02-04 08:29:20 +0000 |
commit | 25a2d721899881ff8dde28d6975648a0bad769f5 (patch) | |
tree | 7f697a0dd0cce0c0acc51a80e39af786091c80bb /test/files/run/bug3376.scala | |
parent | 9dc772f1636e181b3d038eba9ae2f5d1a8359386 (diff) | |
download | scala-25a2d721899881ff8dde28d6975648a0bad769f5.tar.gz scala-25a2d721899881ff8dde28d6975648a0bad769f5.tar.bz2 scala-25a2d721899881ff8dde28d6975648a0bad769f5.zip |
After discovering #3376 was fixed I gave in and...
After discovering #3376 was fixed I gave in and tried to write a test.
Now that the fiddling is over you can write repl tests without creating
5000 streams and settings. Look at test/files/run/bug3376.scala or
jvm/interpreter.scala to see. Test case closes #3376, no review.
Diffstat (limited to 'test/files/run/bug3376.scala')
-rw-r--r-- | test/files/run/bug3376.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/run/bug3376.scala b/test/files/run/bug3376.scala new file mode 100644 index 0000000000..5cff50185c --- /dev/null +++ b/test/files/run/bug3376.scala @@ -0,0 +1,16 @@ +import scala.tools.nsc.interpreter._ + +object Test { + class M[@specialized T] { } + + val 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 + } +} |