PrimType

dotty.tools.sjs.ir.Types.PrimType
sealed abstract class PrimType extends Type

Attributes

Graph
Supertypes
class Type
class Object
trait Matchable
class Any
Known subtypes
object BooleanType
object ByteType
object CharType
object DoubleType
object FloatType
object IntType
object LongType
object NothingType
object NullType
object ShortType
object VoidType
object StringType
object UndefType
Show all

Members list

Value members

Concrete methods

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 methods

Is null an admissible value of this type?

Is null an admissible value of this type?

Attributes

Inherited from:
Type
def show(): String

Attributes

Inherited from:
Type