Skip to content

class Crystal::ProcInstanceType
inherits Crystal::GenericClassInstanceType

An instantiated proc type like Proc(Int32, Char)

Class methods

.new(program, arg_types, return_type)

View source

Methods

#arg_types : Array(Type)

View source

#compatible_with?(other : ProcInstanceType)

View source

#implements?(other : Type)

View source

#nil_type?(node, context)

View source

#restrict(other : ProcNotation, context)

View source

#restrict(other : ProcInstanceType, context)

View source

#restrict(other : Generic, context)

View source

#return_type : Type

View source

#struct?

Returns true if this type is a struct.

View source

#to_s_with_options(io : IO, skip_union_parens : Bool = false, generic_args : Bool = true, codegen : Bool = false) : Nil

View source