DottyPredef
extends Object with SerializableSupertypes
Object, SerializableMembers
final inline
def
assert
( assertion: => Boolean , message: => Any ) : Unit
final inline
def
assert
( assertion: => Boolean ) : Unit
def
assertFail
( ) : Nothing
def
assertFail
( message: => Any ) : Nothing
final inline
def
implicitly
[T] ( implicit ev: T ) : T
inline
def
locally
[T] ( body: => T ) : T
def
nn
[T] ( x: T | Null ) : x.type & TStrips away the nullability from a value. e.g. val s1: String|Null = "hello" val s: String = s1.nn
Note that .nn
performs a checked cast, so if invoked on...
Strips away the nullability from a value. e.g. val s1: String|Null = "hello" val s: String = s1.nn
Note that .nn
performs a checked cast, so if invoked on a null value it'll throw an NPE.
inline
def
summon
[T] ( implicit x: T ) : x.typeSummon a given value of type T
. Usually, the argument is not passed explicitly.
Summon a given value of type T
. Usually, the argument is not passed explicitly.
inline
def
valueOf
[T] : TRetrieve the single value of a type with a unique inhabitant.
Retrieve the single value of a type with a unique inhabitant.