blob: 64599493411ff4295ff3af09195de89f34948f60 (
plain) (
tree)
|
|
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
are possible conversion functions from Unit to AnyRef
val x: AnyRef = () // this should not succeed.
^
one error found
|