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.
2
2
Overload 1 of 2, '(iterable: Iterable<object>): WeakSet<object>', gave the following error.
3
3
Argument of type 'symbol[]' is not assignable to parameter of type 'Iterable<object>'.
4
4
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
8
8
Type 'symbol' is not assignable to type 'object'.
9
9
Overload 2 of 2, '(values?: readonly object[]): WeakSet<object>', gave the following error.
10
10
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.
15
15
Overload 1 of 2, '(iterable: Iterable<readonly [object, boolean]>): WeakMap<object, boolean>', gave the following error.
16
16
Argument of type '[symbol, false][]' is not assignable to parameter of type 'Iterable<readonly [object, boolean]>'.
17
17
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
23
23
Type 'symbol' is not assignable to type 'object'.
24
24
Overload 2 of 2, '(entries?: readonly [object, boolean][]): WeakMap<object, boolean>', gave the following error.
25
25
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'.
33
33
34
34
35
- ==== tests/cases/compiler/ dissallowSymbolAsWeakType.ts (12 errors) ====
35
+ ==== dissallowSymbolAsWeakType.ts (12 errors) ====
36
36
const s: symbol = Symbol('s');
37
37
38
38
const ws = new WeakSet([s]);
0 commit comments