divisionType

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

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

In implementation of divisionType should look something like this:

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

Return

The return type of the div expression

Since

0.1.0

Parameters

other

The type to div

scope

The scope in which the div is done