diff options
author | Martin Odersky <odersky@gmail.com> | 2014-03-16 18:39:08 +0100 |
---|---|---|
committer | Tobias Schlatter <tobias@meisch.ch> | 2014-03-21 11:24:03 +0100 |
commit | 6f1ef32d728320c31cc59daad0f4849c9cd0a87c (patch) | |
tree | ba770aed74e274135e5eb284f1f7e0eb98aa78ff /tests/pos/t0591.scala | |
parent | 4b57b3d877ca7b66b4cb2e588493d2933ae041bf (diff) | |
download | dotty-6f1ef32d728320c31cc59daad0f4849c9cd0a87c.tar.gz dotty-6f1ef32d728320c31cc59daad0f4849c9cd0a87c.tar.bz2 dotty-6f1ef32d728320c31cc59daad0f4849c9cd0a87c.zip |
Fix of t0591: implicitly
A debug assertion in implicitSearch gave a false alarm and was removed.
Diffstat (limited to 'tests/pos/t0591.scala')
-rw-r--r-- | tests/pos/t0591.scala | 7 |
1 files changed, 7 insertions, 0 deletions
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]] +} |