compareTypes

abstract fun compareTypes(argumentRestrictions: List<TypeRestriction>, signatureType: A_Type): TypeComparison

Compare two types to produce a TypeComparison.

Return

A TypeComparison indicating the result of the comparison.

Parameters

argumentRestrictions

The TypeRestrictions that are known to hold at some point.

signatureType

The signature type of some element, which can be tested for containment and intersection against the given restriction.