diff options
author | Martin Odersky <odersky@gmail.com> | 2013-12-20 11:33:05 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-12-20 11:38:39 +0100 |
commit | 146a362bf74418feeb18e12c34178819ecb64942 (patch) | |
tree | 2dec7acd61107a673ce859450cccfad9b50dba88 /tests | |
parent | bac6a2081d971c7f5c87b610cfaac7cd39c06713 (diff) | |
download | dotty-146a362bf74418feeb18e12c34178819ecb64942.tar.gz dotty-146a362bf74418feeb18e12c34178819ecb64942.tar.bz2 dotty-146a362bf74418feeb18e12c34178819ecb64942.zip |
Handling implicit unapply arguments.
Changed format of UnApply nodes to also take implicit parameters. See doc comment in class Trees.UnApply
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/collections.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pos/collections.scala b/tests/pos/collections.scala index 910940e77..28fe011e5 100644 --- a/tests/pos/collections.scala +++ b/tests/pos/collections.scala @@ -18,5 +18,13 @@ object collections { val ys = ints3 map (x => x + 1) val zs = ys filter (y => y != 0) + + val chrs = "abc" + + def do2(x: Int, y: Char) = () + + chrs foreach println + + (ints2, chrs).zipped foreach do2 }
\ No newline at end of file |