Companion

object Companion

Functions

Link copied to clipboard
fun binaryNumericOperationTypeBound(aType: A_Type, bType: A_Type): A_Type

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

Link copied to clipboard
fun possibleOrdersWhenComparingInstancesOf(firstType: A_Type, secondType: A_Type): Set<AbstractNumberDescriptor.Order>

Return the set of possible Orders that could be returned when comparing instances of firstType with instances of secondType. The types are both subtypes of number.