binaryNumericOperationTypeBound

fun binaryNumericOperationTypeBound(aType: A_Type, bType: A_Type): A_Type

Apply the usual rules of type promotion for some unspecified binary numeric operation (like +, -, ×, ÷).

Return

The strongest type we can determine for these input types without analyzing actual integer ranges and instance types.

Parameters

aType

One argument's numeric type.

bType

The other argument's numeric type.