diff options
author | Paul Phillips <paulp@improving.org> | 2012-10-02 11:21:16 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-10-04 16:01:47 -0700 |
commit | 120e14fadf30b4c39f953832108d19b736dc6f2d (patch) | |
tree | f912a4b14f275de00ae02dbe7df4eacbd18de940 /test/files/pos | |
parent | 4715d782d4f4f1f36c11d26023f970a25f2a8c23 (diff) | |
download | scala-120e14fadf30b4c39f953832108d19b736dc6f2d.tar.gz scala-120e14fadf30b4c39f953832108d19b736dc6f2d.tar.bz2 scala-120e14fadf30b4c39f953832108d19b736dc6f2d.zip |
Fix for rangepos crasher.
wrapClassTagUnapply was generating an unpositioned tree
which would crash under -Yrangepos. See SI-6338.
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/classtag-pos.flags | 1 | ||||
-rw-r--r-- | test/files/pos/classtag-pos.scala | 5 |
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 } +} |