unionTypeCallSignatures.ts(9,1): error TS2322: Type 'number | Date' is not assignable to type 'string | boolean'.
  Type 'number' is not assignable to type 'string | boolean'.
unionTypeCallSignatures.ts(9,43): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
unionTypeCallSignatures.ts(10,29): error TS2769: No overload matches this call.
  Overload 1 of 2, '(a: number): number | Date', gave the following error.
    Argument of type 'boolean' is not assignable to parameter of type 'number'.
  Overload 2 of 2, '(a: string): string | boolean', gave the following error.
    Argument of type 'boolean' is not assignable to parameter of type 'string'.
unionTypeCallSignatures.ts(15,29): error TS2769: No overload matches this call.
  Overload 1 of 2, '(a: number): number | Date', gave the following error.
    Argument of type 'boolean' is not assignable to parameter of type 'number'.
  Overload 2 of 2, '(a: string): string | boolean', gave the following error.
    Argument of type 'boolean' is not assignable to parameter of type 'string'.
unionTypeCallSignatures.ts(16,1): error TS2554: Expected 1 arguments, but got 0.
unionTypeCallSignatures.ts(19,32): error TS2345: Argument of type '10' is not assignable to parameter of type 'never'.
unionTypeCallSignatures.ts(20,32): error TS2345: Argument of type '"hello"' is not assignable to parameter of type 'never'.
unionTypeCallSignatures.ts(21,1): error TS2554: Expected 1 arguments, but got 0.
unionTypeCallSignatures.ts(24,1): error TS2554: Expected 1 arguments, but got 0.
unionTypeCallSignatures.ts(26,36): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
unionTypeCallSignatures.ts(29,1): error TS2554: Expected 2 arguments, but got 0.
unionTypeCallSignatures.ts(30,1): error TS2554: Expected 2 arguments, but got 1.
unionTypeCallSignatures.ts(36,49): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
unionTypeCallSignatures.ts(37,12): error TS2554: Expected 1-2 arguments, but got 0.
unionTypeCallSignatures.ts(40,12): error TS2554: Expected 2 arguments, but got 1.
unionTypeCallSignatures.ts(42,49): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
unionTypeCallSignatures.ts(43,12): error TS2554: Expected 2 arguments, but got 0.
unionTypeCallSignatures.ts(48,49): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
unionTypeCallSignatures.ts(49,12): error TS2554: Expected 1-2 arguments, but got 0.
unionTypeCallSignatures.ts(55,45): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
unionTypeCallSignatures.ts(56,12): error TS2555: Expected at least 1 arguments, but got 0.
unionTypeCallSignatures.ts(59,12): error TS2554: Expected 2 arguments, but got 1.
unionTypeCallSignatures.ts(61,49): error TS2554: Expected 2 arguments, but got 3.
unionTypeCallSignatures.ts(62,45): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
unionTypeCallSignatures.ts(63,12): error TS2554: Expected 2 arguments, but got 0.
unionTypeCallSignatures.ts(69,45): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
unionTypeCallSignatures.ts(70,12): error TS2555: Expected at least 1 arguments, but got 0.
unionTypeCallSignatures.ts(73,12): error TS2554: Expected 2 arguments, but got 1.


==== unionTypeCallSignatures.ts (28 errors) ====
    declare var numOrDate: number | Date;
    declare var strOrBoolean: string | boolean;
    declare var strOrNum: string | number;
    
    // If each type in U has call signatures and the sets of call signatures are identical ignoring return types, 
    // U has the same set of call signatures, but with return types that are unions of the return types of the respective call signatures from each type in U.
    declare var unionOfDifferentReturnType: { (a: number): number; } | { (a: number): Date; };
    numOrDate = unionOfDifferentReturnType(10);
    strOrBoolean = unionOfDifferentReturnType("hello"); // error 
    ~~~~~~~~~~~~
!!! error TS2322: Type 'number | Date' is not assignable to type 'string | boolean'.
!!! error TS2322:   Type 'number' is not assignable to type 'string | boolean'.
                                              ~~~~~~~
!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
    unionOfDifferentReturnType1(true); // error in type of parameter
                                ~~~~
!!! error TS2769: No overload matches this call.
!!! error TS2769:   Overload 1 of 2, '(a: number): number | Date', gave the following error.
!!! error TS2769:     Argument of type 'boolean' is not assignable to parameter of type 'number'.
!!! error TS2769:   Overload 2 of 2, '(a: string): string | boolean', gave the following error.
!!! error TS2769:     Argument of type 'boolean' is not assignable to parameter of type 'string'.
    
    declare var unionOfDifferentReturnType1: { (a: number): number; (a: string): string; } | { (a: number): Date; (a: string): boolean; };
    numOrDate = unionOfDifferentReturnType1(10);
    strOrBoolean = unionOfDifferentReturnType1("hello");
    unionOfDifferentReturnType1(true); // error in type of parameter
                                ~~~~
!!! error TS2769: No overload matches this call.
!!! error TS2769:   Overload 1 of 2, '(a: number): number | Date', gave the following error.
!!! error TS2769:     Argument of type 'boolean' is not assignable to parameter of type 'number'.
!!! error TS2769:   Overload 2 of 2, '(a: string): string | boolean', gave the following error.
!!! error TS2769:     Argument of type 'boolean' is not assignable to parameter of type 'string'.
    unionOfDifferentReturnType1(); // error missing parameter
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2554: Expected 1 arguments, but got 0.
!!! related TS6210 unionTypeCallSignatures.ts:12:45: An argument for 'a' was not provided.
    
    declare var unionOfDifferentParameterTypes: { (a: number): number; } | { (a: string): Date; };
    unionOfDifferentParameterTypes(10);// error - no call signatures
                                   ~~
!!! error TS2345: Argument of type '10' is not assignable to parameter of type 'never'.
    unionOfDifferentParameterTypes("hello");// error - no call signatures
                                   ~~~~~~~
!!! error TS2345: Argument of type '"hello"' is not assignable to parameter of type 'never'.
    unionOfDifferentParameterTypes();// error - no call signatures
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2554: Expected 1 arguments, but got 0.
!!! related TS6210 unionTypeCallSignatures.ts:18:48: An argument for 'a' was not provided.
    
    declare var unionOfDifferentNumberOfSignatures: { (a: number): number; } | { (a: number): Date; (a: string): boolean; };
    unionOfDifferentNumberOfSignatures(); // error - no call signatures
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2554: Expected 1 arguments, but got 0.
!!! related TS6210 unionTypeCallSignatures.ts:23:52: An argument for 'a' was not provided.
    unionOfDifferentNumberOfSignatures(10); // error - no call signatures
    unionOfDifferentNumberOfSignatures("hello"); // error - no call signatures
                                       ~~~~~~~
!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
    
    declare var unionWithDifferentParameterCount: { (a: string): string; } | { (a: string, b: number): number; } ;
    unionWithDifferentParameterCount();// needs more args
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2554: Expected 2 arguments, but got 0.
!!! related TS6210 unionTypeCallSignatures.ts:28:77: An argument for 'a' was not provided.
    unionWithDifferentParameterCount("hello");// needs more args
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2554: Expected 2 arguments, but got 1.
!!! related TS6210 unionTypeCallSignatures.ts:28:88: An argument for 'b' was not provided.
    unionWithDifferentParameterCount("hello", 10);// OK
    
    declare var unionWithOptionalParameter1: { (a: string, b?: number): string; } | { (a: string, b?: number): number; };
    strOrNum = unionWithOptionalParameter1('hello');
    strOrNum = unionWithOptionalParameter1('hello', 10);
    strOrNum = unionWithOptionalParameter1('hello', "hello"); // error in parameter type
                                                    ~~~~~~~
!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
    strOrNum = unionWithOptionalParameter1(); // error
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2554: Expected 1-2 arguments, but got 0.
!!! related TS6210 unionTypeCallSignatures.ts:33:45: An argument for 'a' was not provided.
    
    declare var unionWithOptionalParameter2: { (a: string, b?: number): string; } | { (a: string, b: number): number };
    strOrNum = unionWithOptionalParameter2('hello'); // error no call signature
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2554: Expected 2 arguments, but got 1.
!!! related TS6210 unionTypeCallSignatures.ts:39:95: An argument for 'b' was not provided.
    strOrNum = unionWithOptionalParameter2('hello', 10); // error no call signature
    strOrNum = unionWithOptionalParameter2('hello', "hello"); // error no call signature
                                                    ~~~~~~~
!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
    strOrNum = unionWithOptionalParameter2(); // error no call signature
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2554: Expected 2 arguments, but got 0.
!!! related TS6210 unionTypeCallSignatures.ts:39:84: An argument for 'a' was not provided.
    
    declare var unionWithOptionalParameter3: { (a: string, b?: number): string; } | { (a: string): number; };
    strOrNum = unionWithOptionalParameter3('hello');
    strOrNum = unionWithOptionalParameter3('hello', 10); // ok
    strOrNum = unionWithOptionalParameter3('hello', "hello"); // wrong argument type
                                                    ~~~~~~~
!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
    strOrNum = unionWithOptionalParameter3(); // needs more args
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2554: Expected 1-2 arguments, but got 0.
!!! related TS6210 unionTypeCallSignatures.ts:45:45: An argument for 'a' was not provided.
    
    declare var unionWithRestParameter1: { (a: string, ...b: number[]): string; } | { (a: string, ...b: number[]): number };
    strOrNum = unionWithRestParameter1('hello');
    strOrNum = unionWithRestParameter1('hello', 10);
    strOrNum = unionWithRestParameter1('hello', 10, 11);
    strOrNum = unionWithRestParameter1('hello', "hello"); // error in parameter type
                                                ~~~~~~~
!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
    strOrNum = unionWithRestParameter1(); // error
               ~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2555: Expected at least 1 arguments, but got 0.
!!! related TS6210 unionTypeCallSignatures.ts:51:41: An argument for 'a' was not provided.
    
    declare var unionWithRestParameter2: { (a: string, ...b: number[]): string; } | { (a: string, b: number): number };
    strOrNum = unionWithRestParameter2('hello'); // error no call signature
               ~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2554: Expected 2 arguments, but got 1.
!!! related TS6210 unionTypeCallSignatures.ts:58:95: An argument for 'b' was not provided.
    strOrNum = unionWithRestParameter2('hello', 10); // error no call signature
    strOrNum = unionWithRestParameter2('hello', 10, 11); // error no call signature
                                                    ~~
!!! error TS2554: Expected 2 arguments, but got 3.
    strOrNum = unionWithRestParameter2('hello', "hello"); // error no call signature
                                                ~~~~~~~
!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
    strOrNum = unionWithRestParameter2(); // error no call signature
               ~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2554: Expected 2 arguments, but got 0.
!!! related TS6210 unionTypeCallSignatures.ts:58:84: An argument for 'a' was not provided.
    
    declare var unionWithRestParameter3: { (a: string, ...b: number[]): string; } | { (a: string): number };
    strOrNum = unionWithRestParameter3('hello');
    strOrNum = unionWithRestParameter3('hello', 10); // error no call signature
    strOrNum = unionWithRestParameter3('hello', 10, 11); // error no call signature
    strOrNum = unionWithRestParameter3('hello', "hello"); // wrong argument type
                                                ~~~~~~~
!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
    strOrNum = unionWithRestParameter3(); // error no call signature
               ~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2555: Expected at least 1 arguments, but got 0.
!!! related TS6210 unionTypeCallSignatures.ts:65:41: An argument for 'a' was not provided.
    
    declare var unionWithRestParameter4: { (...a: string[]): string; } | { (a: string, b: string): number; };
    strOrNum = unionWithRestParameter4("hello"); // error supplied parameters do not match any call signature
               ~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2554: Expected 2 arguments, but got 1.
!!! related TS6210 unionTypeCallSignatures.ts:72:84: An argument for 'b' was not provided.
    strOrNum = unionWithRestParameter4("hello", "world");
    