O object

DottyPredef

extends Object with Serializable

Supertypes

Object, Serializable

Members

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 & T

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...

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.type

inline def 

valueOf

[T] : T

Retrieve the single value of a type with a unique inhabitant.

Retrieve the single value of a type with a unique inhabitant.