diff options
Diffstat (limited to 'test/files/neg/unit2anyref.check')
-rw-r--r-- | test/files/neg/unit2anyref.check | 4 |
1 files changed, 2 insertions, 2 deletions
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. ^ |