DottyPredef
extends ObjectSupertypes
ObjectMembers
assert
( assertion: Boolean , message: => Any ) : Unitassert
( assertion: Boolean ) : UnitassertFail
( ) : NothingassertFail
( message: => Any ) : Nothingextension_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.
implicitly
[T] ( implicit ev: T ) : Tlocally
[T] ( body: T ) : TUsed to mark code blocks as being expressions, instead of being taken as part of anonymous classes and the like. This is just a different name for [ide...
Used to mark code blocks as being expressions, instead of being taken as part of anonymous classes and the like. This is just a different name for [[identity]].
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.
valueOf
[T] : TRetrieve the single value of a type with a unique inhabitant.
Retrieve the single value of a type with a unique inhabitant.