diff options
Diffstat (limited to 'test/files/run/t4875.scala')
-rw-r--r-- | test/files/run/t4875.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/t4875.scala b/test/files/run/t4875.scala new file mode 100644 index 0000000000..c17211aede --- /dev/null +++ b/test/files/run/t4875.scala @@ -0,0 +1,12 @@ +import scala.tools.nsc.interpreter._ +import scala.tools.partest.ReplTest + +object Test extends ReplTest { + class M[@specialized T] { } + + def code = """ + |import scala.reflect.Code + |def codeOf[A](code: Code[A]) = code + |codeOf((x: Iterable[_]) => throw new Exception) + """.stripMargin +} |