diff options
author | Martin Odersky <odersky@gmail.com> | 2011-09-20 15:13:16 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-09-20 15:13:16 +0000 |
commit | 088094b1c82ee38b10d84c4826b740a4e0f5f0fe (patch) | |
tree | 126be0feb2d2c910692f141117110f3e0fd29971 /test/files/pos/collectGenericCC.scala | |
parent | f6d4d84dd7eb5de3e7f698c7f627d483b6999142 (diff) | |
download | scala-088094b1c82ee38b10d84c4826b740a4e0f5f0fe.tar.gz scala-088094b1c82ee38b10d84c4826b740a4e0f5f0fe.tar.bz2 scala-088094b1c82ee38b10d84c4826b740a4e0f5f0fe.zip |
Changes to Liftcode to use new reflection seman...
Changes to Liftcode to use new reflection semantics, where a compiler
uses type checking.
Diffstat (limited to 'test/files/pos/collectGenericCC.scala')
-rw-r--r-- | test/files/pos/collectGenericCC.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/files/pos/collectGenericCC.scala b/test/files/pos/collectGenericCC.scala index 099a53d3f5..5c51a50d71 100644 --- a/test/files/pos/collectGenericCC.scala +++ b/test/files/pos/collectGenericCC.scala @@ -1,10 +1,10 @@ -import scala.collection.generic._ +import scala.collection.generic.CanBuildFrom import scala.collection._ object Test { - def collect[A, Res](r: Traversable[A])(implicit bf: CanBuild[A, Res]) = { - val b = bf() - for (a <- r) b += a + def collect[A, Res](r: Traversable[A])(implicit bf: generic.CanBuild[A, Res]) = { + val b: collection.mutable.Builder[A, Res] = bf() + r foreach ((a: A) => b += a) b.result } |