diff options
author | Paul Phillips <paulp@improving.org> | 2009-10-20 20:19:28 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-10-20 20:19:28 +0000 |
commit | 2d1242bd5e2486c1ba785d39e81408d418dacc13 (patch) | |
tree | bd72d3a3d585965d958ceba977028411cd83dade /test/files/neg | |
parent | 081e2fb747892a7efe12f1e9b0138b9d1726ab6b (diff) | |
download | scala-2d1242bd5e2486c1ba785d39e81408d418dacc13.tar.gz scala-2d1242bd5e2486c1ba785d39e81408d418dacc13.tar.bz2 scala-2d1242bd5e2486c1ba785d39e81408d418dacc13.zip |
Fixes for 66.67% of the tests failing from the ...
Fixes for 66.67% of the tests failing from the Ordering commit. Other
third is going to take a closer look.
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/bug900.check | 4 | ||||
-rw-r--r-- | test/files/neg/unit2anyref.check | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/files/neg/bug900.check b/test/files/neg/bug900.check index 459ea38bc3..6085ffea06 100644 --- a/test/files/neg/bug900.check +++ b/test/files/neg/bug900.check @@ -2,8 +2,8 @@ bug900.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 orderingToOrdered in object Predef of type [T](x: T)(implicit ord: Ordering[T])Ordered[T] - and method any2stringadd in object Predef of type (x: Any)scala.runtime.StringAdd + both method any2stringadd in object Predef of type (x: Any)scala.runtime.StringAdd + and method any2ArrowAssoc in object Predef of type [A](x: A)ArrowAssoc[A] are possible conversion functions from Foo.this.x.type to AnyRef def break(): x.type ^ diff --git a/test/files/neg/unit2anyref.check b/test/files/neg/unit2anyref.check index 6459949341..7af4564ffb 100644 --- a/test/files/neg/unit2anyref.check +++ b/test/files/neg/unit2anyref.check @@ -2,8 +2,8 @@ unit2anyref.scala:2: error: type mismatch; found : Unit required: AnyRef Note that implicit conversions are not applicable because they are ambiguous: - both method orderingToOrdered in object Predef of type [T](x: T)(implicit ord: Ordering[T])Ordered[T] - and method any2stringadd in object Predef of type (x: Any)scala.runtime.StringAdd + both method any2stringadd in object Predef of type (x: Any)scala.runtime.StringAdd + and method any2ArrowAssoc in object Predef of type [A](x: A)ArrowAssoc[A] are possible conversion functions from Unit to AnyRef val x: AnyRef = () // this should not succeed. ^ |