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 | |
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')
-rw-r--r-- | test/files/pos/collectGenericCC.scala | 8 | ||||
-rw-r--r-- | test/files/pos/spec-funs.scala | 4 |
2 files changed, 6 insertions, 6 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 } diff --git a/test/files/pos/spec-funs.scala b/test/files/pos/spec-funs.scala index 5fea5e9560..d54dfd8227 100644 --- a/test/files/pos/spec-funs.scala +++ b/test/files/pos/spec-funs.scala @@ -54,10 +54,10 @@ final class ClosureTest { } } -object TestInt extends testing.Benchmark { +object TestInt extends scala.testing.Benchmark { def run() = (new IntTest).run() } -object TestClosure extends testing.Benchmark { +object TestClosure extends scala.testing.Benchmark { def run() = (new ClosureTest).run() } |