Skip to content

Commit 411d4e7

Browse files
committed
update baselines
1 parent 5740829 commit 411d4e7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/baselines/reference/dissallowSymbolAsWeakType.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dissallowSymbolAsWeakType.ts(4,8): error TS2345: Argument of type 'symbol' is no
1212
dissallowSymbolAsWeakType.ts(5,8): error TS2345: Argument of type 'symbol' is not assignable to parameter of type 'object'.
1313
dissallowSymbolAsWeakType.ts(6,11): error TS2345: Argument of type 'symbol' is not assignable to parameter of type 'object'.
1414
dissallowSymbolAsWeakType.ts(8,16): error TS2769: No overload matches this call.
15-
Overload 1 of 2, '(iterable?: Iterable<readonly [object, boolean]>): WeakMap<object, boolean>', gave the following error.
15+
Overload 1 of 2, '(iterable?: Iterable<readonly [object, boolean]> | null | undefined): 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.
1818
Type 'IteratorResult<[symbol, false], undefined>' is not assignable to type 'IteratorResult<readonly [object, boolean], any>'.
@@ -60,7 +60,7 @@ dissallowSymbolAsWeakType.ts(19,14): error TS2345: Argument of type 'symbol' is
6060
const wm = new WeakMap([[s, false]]);
6161
~~~~~~~
6262
!!! error TS2769: No overload matches this call.
63-
!!! error TS2769: Overload 1 of 2, '(iterable?: Iterable<readonly [object, boolean]>): WeakMap<object, boolean>', gave the following error.
63+
!!! error TS2769: Overload 1 of 2, '(iterable?: Iterable<readonly [object, boolean]> | null | undefined): WeakMap<object, boolean>', gave the following error.
6464
!!! error TS2769: Argument of type '[symbol, false][]' is not assignable to parameter of type 'Iterable<readonly [object, boolean]>'.
6565
!!! error TS2769: The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types.
6666
!!! error TS2769: Type 'IteratorResult<[symbol, false], undefined>' is not assignable to type 'IteratorResult<readonly [object, boolean], any>'.

tests/baselines/reference/newMap.types

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ new Map<string>();
99

1010
new WeakMap<object>();
1111
>new WeakMap<object>() : WeakMap<object, any>
12+
> : ^^^^^^^^^^^^^^^^^^^^
1213
>WeakMap : WeakMapConstructor
14+
> : ^^^^^^^^^^^^^^^^^^
1315

0 commit comments

Comments
 (0)