binary Numeric Operation Type Bound
fun binaryNumericOperationTypeBound(aType: A_Type, bType: A_Type): A_Type
Content copied to clipboard
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
a Type
One argument's numeric type.
b Type
The other argument's numeric type.