blob: b6ac7731a4cedf4ca49e31686f982e848a36c5ae (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package scala.runtime
/* This is a hijacked class. Its only instance is the value 'undefined'.
* Constructors are not emitted.
*/
class BoxedUnit private {
@inline override def equals(that: Any): Boolean =
this eq that.asInstanceOf[AnyRef]
@inline override def hashCode(): Int = 0
@inline override def toString(): String = "undefined"
}
object BoxedUnit {
val UNIT: BoxedUnit = sys.error("stub")
val TYPE: Class[Void] = sys.error("stub")
}
|