getSmartLeastUpperBound static method

  1. @Deprecated('Use TypeSystem.leastUpperBound instead')
InterfaceType getSmartLeastUpperBound(
  1. InterfaceType first,
  2. InterfaceType second
)

Returns a "smart" version of the "least upper bound" of the given types.

If these types have the same element and differ only in terms of the type arguments, attempts to find a compatible set of type arguments.

Otherwise, returns the same result as DartType.getLeastUpperBound.

Implementation

@Deprecated('Use TypeSystem.leastUpperBound instead')
static InterfaceType getSmartLeastUpperBound(
        InterfaceType first, InterfaceType second) =>
    InterfaceTypeImpl.getSmartLeastUpperBound(first, second);