TypeContext
Inherits CanError < ImplementationChecker < TypeUnifier < TypeEvaluator < Reference < Object
Type inference context
Constructors
Instance methods
add_trait_bound(new_trait_bound : TraitBound)
Sourceenv
Sourceimplementations
Sourcelog
Sourcepretty_print(pp)
Sourceto_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>
trait_bounds
Sourcetype_args
Source