diff options
author | Lukas Rytz <lukas.rytz@typesafe.com> | 2014-05-25 11:27:58 +0300 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2014-05-25 11:27:58 +0300 |
commit | ae6724527d2798b49e9c2cede536af48b3c9d962 (patch) | |
tree | a11c4fe9634e3bf919d467267439a6da15225f1a /test | |
parent | e948b39ca4df48b2acb0e972a2caf674c643a990 (diff) | |
parent | bdf9195993caa3eee4f3be49428566323eaf4afd (diff) | |
download | scala-ae6724527d2798b49e9c2cede536af48b3c9d962.tar.gz scala-ae6724527d2798b49e9c2cede536af48b3c9d962.tar.bz2 scala-ae6724527d2798b49e9c2cede536af48b3c9d962.zip |
Merge pull request #3790 from retronym/ticket/8617
SI-8617 Avoid rangepos crash for OptManifest materializer
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/t8617.flags | 1 | ||||
-rw-r--r-- | test/files/pos/t8617.scala | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/t8617.flags b/test/files/pos/t8617.flags new file mode 100644 index 0000000000..281f0a10cd --- /dev/null +++ b/test/files/pos/t8617.flags @@ -0,0 +1 @@ +-Yrangepos diff --git a/test/files/pos/t8617.scala b/test/files/pos/t8617.scala new file mode 100644 index 0000000000..fc825bbcba --- /dev/null +++ b/test/files/pos/t8617.scala @@ -0,0 +1,10 @@ +object Test { + def foo[A] = implicitly[OptManifest[A]] // was "unpositioned tree" under -Yrangepos + + // These did not crash, but testing for good measure. + implicitly[OptManifest[String]] + implicitly[Manifest[String]] + + implicitly[reflect.ClassTag[String]] + implicitly[reflect.runtime.universe.TypeTag[String]] +} |