diff options
author | Paul Phillips <paulp@improving.org> | 2011-10-29 19:34:54 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-10-29 19:34:54 +0000 |
commit | 48a26b9c2be3cb5390dafa8a13620c91fab0167d (patch) | |
tree | b844c9eaac6d5deabb975d5627e52e1fd589f873 /test/files/run/t4875.scala | |
parent | d1f89f473a004faf6bb934196d5e44447102bf2c (diff) | |
download | scala-48a26b9c2be3cb5390dafa8a13620c91fab0167d.tar.gz scala-48a26b9c2be3cb5390dafa8a13620c91fab0167d.tar.bz2 scala-48a26b9c2be3cb5390dafa8a13620c91fab0167d.zip |
Test case closes SI-4875.
No review.
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 +} |