getSmartLeastUpperBound static method
- @Deprecated('Use TypeSystem.leastUpperBound instead')
- InterfaceType first,
- 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);