summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-12-19 12:52:01 -0800
committerPaul Phillips <paulp@improving.org>2012-12-19 12:52:01 -0800
commit886df5b7b66f0ec818f630142c77abf9a867e496 (patch)
treeb2bbd49652ea3d67279ec1d27c5068e43a069ae1 /test/files/pos
parentfc82bc69f1553f0b8def4a50240052366b37b411 (diff)
parent18481cef9b219c48b3497c4605b793b22a7faf79 (diff)
downloadscala-886df5b7b66f0ec818f630142c77abf9a867e496.tar.gz
scala-886df5b7b66f0ec818f630142c77abf9a867e496.tar.bz2
scala-886df5b7b66f0ec818f630142c77abf9a867e496.zip
Merge remote-tracking branch 'origin/2.10.0-wip' into 2.10.0-wip-merge
# 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/files/pos')
-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 }
+}