summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-12-05 12:26:46 -0800
committerPaul Phillips <paulp@improving.org>2012-12-05 12:26:46 -0800
commitb84ecc5d1afcb71dd4047de9f1cc49060835d3df (patch)
tree07feb0c89c2f808f676e541e09d8e0e139c2cb85 /test
parentedbcc64483ac0009eeeb58fe31e57a411da9e4c6 (diff)
parent18481cef9b219c48b3497c4605b793b22a7faf79 (diff)
downloadscala-b84ecc5d1afcb71dd4047de9f1cc49060835d3df.tar.gz
scala-b84ecc5d1afcb71dd4047de9f1cc49060835d3df.tar.bz2
scala-b84ecc5d1afcb71dd4047de9f1cc49060835d3df.zip
Merge remote-tracking branch 'origin/2.10.0-wip' into merge-2.10-wip
# By Eugene Burmako (1) and others # Via Adriaan Moors (2) and others * origin/2.10.0-wip: Fixing OSGi distribution. Fix for rangepos crasher. SI-6685 fixes error handling in typedApply
Diffstat (limited to 'test')
-rw-r--r--test/files/pos/classtag-pos.flags1
-rw-r--r--test/files/pos/classtag-pos.scala5
2 files changed, 6 insertions, 0 deletions
diff --git a/test/files/pos/classtag-pos.flags b/test/files/pos/classtag-pos.flags
new file mode 100644
index 0000000000..281f0a10cd
--- /dev/null
+++ b/test/files/pos/classtag-pos.flags
@@ -0,0 +1 @@
+-Yrangepos
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 }
+}