NothingType

dotty.tools.sjs.ir.Types.NothingType
case object NothingType extends PrimTypeWithRef

Nothing type (the bottom type of this type system). Expressions from which one can never come back are typed as Nothing. For example, throw and return.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class PrimType
class Type
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Singleton

Attributes

Inherited from:
Singleton
type MirroredMonoType = Singleton.this.type

The mirrored *-type

The mirrored *-type

Attributes

Inherited from:
Singleton
type MirroredType = Singleton.this.type

Attributes

Inherited from:
Singleton

Inherited and Abstract types

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Inherited methods

Create a new instance of type T with elements taken from product p.

Create a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton

Is null an admissible value of this type?

Is null an admissible value of this type?

Attributes

Inherited from:
Type

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def show(): String

Attributes

Inherited from:
Type
final def toNonNullable: PrimType

A type that accepts the same values as this type except null, unless this type is VoidType.

A type that accepts the same values as this type except null, unless this type is VoidType.

If this is VoidType, returns this type.

For all other types tpe, tpe.toNonNullable.isNullable is false.

Attributes

Inherited from:
PrimType

Inherited fields

Attributes

Inherited from:
PrimTypeWithRef