multiplicationType

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

In implementation of multiplicationType should look something like this:

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

Return

The return type of the mul expression

Since

0.1.0

Parameters

other

The type to mul

scope

The scope in which the mul is done