aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-11-17 12:42:10 +0100
committerMartin Odersky <odersky@gmail.com>2015-11-17 12:42:10 +0100
commit365d3a5fe60da2d6ed004d377adf086a1bf841ba (patch)
tree40a0b70b114e5e77bda91e40b9e3ccffd4668853 /tests
parent8a70ae85c829385e2cdc0c58e4e7438c55135492 (diff)
downloaddotty-365d3a5fe60da2d6ed004d377adf086a1bf841ba.tar.gz
dotty-365d3a5fe60da2d6ed004d377adf086a1bf841ba.tar.bz2
dotty-365d3a5fe60da2d6ed004d377adf086a1bf841ba.zip
Extend implicits test
... to show that we support implicit patterns.
Diffstat (limited to 'tests')
-rw-r--r--tests/pos/implicits2.scala6
1 files changed, 6 insertions, 0 deletions
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])
+ }
}