blob: 4072e81dc7f280d7d0a4497807e35feb30f7d566 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2009, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
// $Id: RichUnit.scala 14532 2008-04-07 12:23:22Z washburn $
package scala.runtime
/** This class exists only as a dummy subclass so that there are two ambiguous
* implicit conversions from Unit to some subclass to Object.
* It's important that this class should NOT inherit from Ordered.
*
* Note - in reality the ambiguity is successfully introduced by any2stringadd
* and orderingToOrdered, and adding an implicit from () => RichUnit actually
* resolves the ambiguity by being more specific, and succeeds! So this class
* is probably useless, and unitWrapper has been removed from Predef.
*/
final class RichUnit {}
|