diff options
author | Paul Phillips <paulp@improving.org> | 2012-10-02 11:21:16 -0700 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2012-12-04 16:06:48 +0100 |
commit | eccdc2fefcf0839e09bb9c63c89baed8cf09e60f (patch) | |
tree | c634d8069a99d1d2f06741e981159cb83b1d79cc /test | |
parent | 70a24f907b07ea030419ef686a56272233ddd3ee (diff) | |
download | scala-eccdc2fefcf0839e09bb9c63c89baed8cf09e60f.tar.gz scala-eccdc2fefcf0839e09bb9c63c89baed8cf09e60f.tar.bz2 scala-eccdc2fefcf0839e09bb9c63c89baed8cf09e60f.zip |
Fix for rangepos crasher.
wrapClassTagUnapply was generating an unpositioned tree
which would crash under -Yrangepos. See SI-6338.
Diffstat (limited to 'test')
-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 } +} |