summaryrefslogtreecommitdiff
path: root/test/files/pos/classtag-pos.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/classtag-pos.scala')
-rw-r--r--test/files/pos/classtag-pos.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/pos/classtag-pos.scala b/test/files/pos/classtag-pos.scala
new file mode 100644
index 0000000000..768d2e27f4
--- /dev/null
+++ b/test/files/pos/classtag-pos.scala
@@ -0,0 +1,5 @@
+import scala.reflect.runtime.universe._
+
+class A {
+ def f[T: TypeTag] = typeOf[T] match { case TypeRef(_, _, args) => args }
+}