From bdf9195993caa3eee4f3be49428566323eaf4afd Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Sat, 24 May 2014 20:42:27 +0200 Subject: SI-8617 Avoid rangepos crash for OptManifest materializer The tree to create a `NoManifest` was unpositioned. --- test/files/pos/t8617.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/files/pos/t8617.scala (limited to 'test/files/pos/t8617.scala') 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]] +} -- cgit v1.2.3