matches<TOther> method

bool matches<TOther>()

Implementation

bool matches<TOther>() =>
    isExact<TOther>() || TypeCheck<T?>().isExact<TOther>();