summaryrefslogblamecommitdiff
path: root/test/files/run/bug3376.scala
blob: 5cff50185caeb782e9eaa9cc79c82b616f6d385d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
  }
}