From 365d3a5fe60da2d6ed004d377adf086a1bf841ba Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 17 Nov 2015 12:42:10 +0100 Subject: Extend implicits test ... to show that we support implicit patterns. --- tests/pos/implicits2.scala | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/pos/implicits2.scala b/tests/pos/implicits2.scala index 8e566c19f..a201ed5f9 100644 --- a/tests/pos/implicits2.scala +++ b/tests/pos/implicits2.scala @@ -16,4 +16,10 @@ object implicits2 { val x: scala.collection.immutable.WrappedString = "abc" + implicit val (xx: String, y: Int) = ("a", 22) + + def main(args: Array[String]) = { + println(implicitly[String]) + println(implicitly[Int]) + } } -- cgit v1.2.3