diff options
author | Paul Phillips <paulp@improving.org> | 2012-04-30 07:44:42 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-04-30 09:40:41 -0700 |
commit | cf18d879d3f43d5a0c15c5c0af72f88c25605a08 (patch) | |
tree | 2112180d54c913b387791899905fb3d8ede376d0 /test/files/neg | |
parent | 94c63f5da548996535cad43142758c9405118828 (diff) | |
download | scala-cf18d879d3f43d5a0c15c5c0af72f88c25605a08.tar.gz scala-cf18d879d3f43d5a0c15c5c0af72f88c25605a08.tar.bz2 scala-cf18d879d3f43d5a0c15c5c0af72f88c25605a08.zip |
Optimization of Predef implicits.
All those wildcards in a default-scoped implicit are expensive,
they each lead to a typevar on every search. Restructured the
Tuple2/Tuple3 Zipped classes, they're better this way anyway.
This also gets all that Tuple[23] code out of genprod.
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/t900.check | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/neg/t900.check b/test/files/neg/t900.check index 047094ad6e..4611ceba8c 100644 --- a/test/files/neg/t900.check +++ b/test/files/neg/t900.check @@ -2,8 +2,8 @@ t900.scala:4: error: type mismatch; found : Foo.this.x.type (with underlying type Foo.this.bar) required: AnyRef Note that implicit conversions are not applicable because they are ambiguous: - both method any2stringadd in object Predef of type (x: Any)scala.runtime.StringAdd - and method any2stringfmt in object Predef of type (x: Any)scala.runtime.StringFormat + both method any2stringfmt in object Predef of type (x: Any)scala.runtime.StringFormat + and method any2stringadd in object Predef of type (x: Any)scala.runtime.StringAdd are possible conversion functions from Foo.this.x.type to AnyRef def break(): x.type ^ |