tests/cases/compiler/specializedOverloadWithRestParameters.ts(3,10): error TS2382: Specialized overload signature is not assignable to any non-specialized signature.
tests/cases/compiler/specializedOverloadWithRestParameters.ts(8,10): error TS2382: Specialized overload signature is not assignable to any non-specialized signature.


==== tests/cases/compiler/specializedOverloadWithRestParameters.ts (2 errors) ====
    class Base { foo() { } }
    class Derived1 extends Base { bar() { } }
    function f(tagName: 'span', ...args): Derived1;   // error
             ~
!!! error TS2382: Specialized overload signature is not assignable to any non-specialized signature.
    function f(tagName: number, ...args): Base;
    function f(tagName: any): Base {
        return null;
    }
    function g(tagName: 'span', arg): Derived1;    // error
             ~
!!! error TS2382: Specialized overload signature is not assignable to any non-specialized signature.
    function g(tagName: number, arg): Base;
    function g(tagName: any): Base {
        return null;
    }