From 6f1ef32d728320c31cc59daad0f4849c9cd0a87c Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 16 Mar 2014 18:39:08 +0100 Subject: Fix of t0591: implicitly A debug assertion in implicitSearch gave a false alarm and was removed. --- tests/pos/t0591.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/pos/t0591.scala (limited to 'tests/pos/t0591.scala') diff --git a/tests/pos/t0591.scala b/tests/pos/t0591.scala new file mode 100644 index 000000000..0a39cab1b --- /dev/null +++ b/tests/pos/t0591.scala @@ -0,0 +1,7 @@ +object Test { + def implicitly[T](implicit t : T): T = t + implicit def perhaps[T](implicit t : T) : Option[T] = Some(t) + implicit val hello: String = "Hello" + implicitly[String] + implicitly[Option[String]] +} -- cgit v1.2.3