lessThanType

open fun lessThanType(other: ShakeType, scope: ShakeScope): ShakeType?(source)

Returns the type of the expression this < other If the less-than operator is not overloaded, this method should look for a default less-than operator and resolve the type itself. This isi the default implementation of lessThanType, we don't know anything about the type here and so we just try to search for an overloaded operator.

In implementation of lessThanType should look something like this:

override fun lessThanType(other: ShakeType, scope: ShakeScope): ShakeType? {
return super.lessThanType(other, scope) ?: ... // default operator stuff
}

Return

The return type of the compare expression

Since

0.1.0

Parameters

other

The type to compare

scope

The scope in which the compare is done