summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/files/run/t5881.check2
-rw-r--r--test/files/run/t5881.scala6
2 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/t5881.check b/test/files/run/t5881.check
new file mode 100644
index 0000000000..477fb935a8
--- /dev/null
+++ b/test/files/run/t5881.check
@@ -0,0 +1,2 @@
+ClassTag[class scala.collection.immutable.List]
+ClassTag[class scala.collection.immutable.List]
diff --git a/test/files/run/t5881.scala b/test/files/run/t5881.scala
new file mode 100644
index 0000000000..01bee29181
--- /dev/null
+++ b/test/files/run/t5881.scala
@@ -0,0 +1,6 @@
+import scala.reflect.ClassTag
+
+object Test extends App {
+ println(implicitly[ClassTag[List[T forSome {type T <: List[T]}]]])
+ println(implicitly[ClassTag[List[Any]]])
+} \ No newline at end of file