aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/classtag-pos.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/classtag-pos.scala')
-rw-r--r--tests/untried/pos/classtag-pos.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/untried/pos/classtag-pos.scala b/tests/untried/pos/classtag-pos.scala
new file mode 100644
index 000000000..768d2e27f
--- /dev/null
+++ b/tests/untried/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 }
+}