diff options
author | Martin Odersky <odersky@gmail.com> | 2014-02-03 16:59:26 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-02-03 17:00:10 +0100 |
commit | 01fc1813929bfea3235bb0739131f675f57c7309 (patch) | |
tree | 4e4043e019551387b363f47971911706867330c5 /tests/pos/collections.scala | |
parent | 4fab474454be9d2ac615ca39517a9f6c262bf187 (diff) | |
download | dotty-01fc1813929bfea3235bb0739131f675f57c7309.tar.gz dotty-01fc1813929bfea3235bb0739131f675f57c7309.tar.bz2 dotty-01fc1813929bfea3235bb0739131f675f57c7309.zip |
Fix problems with TypeVar instantiation
1) Simplify skipped one level over arguments of AndType/OrType.
2) variances needs to follow instantiated typevars
Diffstat (limited to 'tests/pos/collections.scala')
-rw-r--r-- | tests/pos/collections.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/pos/collections.scala b/tests/pos/collections.scala index 28fe011e5..cd84f03d8 100644 --- a/tests/pos/collections.scala +++ b/tests/pos/collections.scala @@ -2,6 +2,9 @@ import scala.collection.generic.CanBuildFrom object collections { + val arr = Array("a", "b") + val aa = arr ++ arr + List(1, 2, 3) map (x => 2) val s = Set(1, 2, 3) |