1- tests/cases/compiler/ dissallowSymbolAsWeakType.ts(3,12): error TS2769: No overload matches this call.
1+ dissallowSymbolAsWeakType.ts(3,12): error TS2769: No overload matches this call.
22 Overload 1 of 2, '(iterable: Iterable<object>): WeakSet<object>', gave the following error.
33 Argument of type 'symbol[]' is not assignable to parameter of type 'Iterable<object>'.
44 The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types.
@@ -8,10 +8,10 @@ tests/cases/compiler/dissallowSymbolAsWeakType.ts(3,12): error TS2769: No overlo
88 Type 'symbol' is not assignable to type 'object'.
99 Overload 2 of 2, '(values?: readonly object[]): WeakSet<object>', gave the following error.
1010 Type 'symbol' is not assignable to type 'object'.
11- tests/cases/compiler/ dissallowSymbolAsWeakType.ts(4,8): error TS2345: Argument of type 'symbol' is not assignable to parameter of type 'object'.
12- tests/cases/compiler/ dissallowSymbolAsWeakType.ts(5,8): error TS2345: Argument of type 'symbol' is not assignable to parameter of type 'object'.
13- tests/cases/compiler/ dissallowSymbolAsWeakType.ts(6,11): error TS2345: Argument of type 'symbol' is not assignable to parameter of type 'object'.
14- tests/cases/compiler/ dissallowSymbolAsWeakType.ts(8,12): error TS2769: No overload matches this call.
11+ dissallowSymbolAsWeakType.ts(4,8): error TS2345: Argument of type 'symbol' is not assignable to parameter of type 'object'.
12+ dissallowSymbolAsWeakType.ts(5,8): error TS2345: Argument of type 'symbol' is not assignable to parameter of type 'object'.
13+ dissallowSymbolAsWeakType.ts(6,11): error TS2345: Argument of type 'symbol' is not assignable to parameter of type 'object'.
14+ dissallowSymbolAsWeakType.ts(8,12): error TS2769: No overload matches this call.
1515 Overload 1 of 2, '(iterable: Iterable<readonly [object, boolean]>): WeakMap<object, boolean>', gave the following error.
1616 Argument of type '[symbol, false][]' is not assignable to parameter of type 'Iterable<readonly [object, boolean]>'.
1717 The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types.
@@ -23,16 +23,16 @@ tests/cases/compiler/dissallowSymbolAsWeakType.ts(8,12): error TS2769: No overlo
2323 Type 'symbol' is not assignable to type 'object'.
2424 Overload 2 of 2, '(entries?: readonly [object, boolean][]): WeakMap<object, boolean>', gave the following error.
2525 Type 'symbol' is not assignable to type 'object'.
26- tests/cases/compiler/ dissallowSymbolAsWeakType.ts(9,8): error TS2345: Argument of type 'symbol' is not assignable to parameter of type 'object'.
27- tests/cases/compiler/ dissallowSymbolAsWeakType.ts(10,8): error TS2345: Argument of type 'symbol' is not assignable to parameter of type 'object'.
28- tests/cases/compiler/ dissallowSymbolAsWeakType.ts(11,8): error TS2345: Argument of type 'symbol' is not assignable to parameter of type 'object'.
29- tests/cases/compiler/ dissallowSymbolAsWeakType.ts(12,11): error TS2345: Argument of type 'symbol' is not assignable to parameter of type 'object'.
30- tests/cases/compiler/ dissallowSymbolAsWeakType.ts(14,24): error TS2345: Argument of type 'symbol' is not assignable to parameter of type 'object'.
31- tests/cases/compiler/ dissallowSymbolAsWeakType.ts(18,12): error TS2345: Argument of type 'symbol' is not assignable to parameter of type 'object'.
32- tests/cases/compiler/ dissallowSymbolAsWeakType.ts(19,14): error TS2345: Argument of type 'symbol' is not assignable to parameter of type 'object'.
26+ dissallowSymbolAsWeakType.ts(9,8): error TS2345: Argument of type 'symbol' is not assignable to parameter of type 'object'.
27+ dissallowSymbolAsWeakType.ts(10,8): error TS2345: Argument of type 'symbol' is not assignable to parameter of type 'object'.
28+ dissallowSymbolAsWeakType.ts(11,8): error TS2345: Argument of type 'symbol' is not assignable to parameter of type 'object'.
29+ dissallowSymbolAsWeakType.ts(12,11): error TS2345: Argument of type 'symbol' is not assignable to parameter of type 'object'.
30+ dissallowSymbolAsWeakType.ts(14,24): error TS2345: Argument of type 'symbol' is not assignable to parameter of type 'object'.
31+ dissallowSymbolAsWeakType.ts(18,12): error TS2345: Argument of type 'symbol' is not assignable to parameter of type 'object'.
32+ dissallowSymbolAsWeakType.ts(19,14): error TS2345: Argument of type 'symbol' is not assignable to parameter of type 'object'.
3333
3434
35- ==== tests/cases/compiler/ dissallowSymbolAsWeakType.ts (12 errors) ====
35+ ==== dissallowSymbolAsWeakType.ts (12 errors) ====
3636 const s: symbol = Symbol('s');
3737
3838 const ws = new WeakSet([s]);
0 commit comments