Skip to content

class Crystal::NilableType
inherits Crystal::UnionType

A union type that has two types: Nil and another Reference type. Can be represented as a maybe-null pointer where the type id of the type that is not nil is known at compile time.

Class methods

.new(program, not_nil_type)

View source

Methods

#not_nil_type

View source