Skip to content

Commit 1f1521c

Browse files
authored
Undo accidental change from microsoft#39772 (microsoft#39779)
* Undo accidental change * Delete test
1 parent 68ba670 commit 1f1521c

7 files changed

+3
-77
lines changed

src/compiler/checker.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33446,8 +33446,6 @@ namespace ts {
3344633446
reportTypeNotIterableError(errorNode, type, !!(use & IterationUse.AllowsAsyncIterablesFlag));
3344733447
errorNode = undefined;
3344833448
}
33449-
setCachedIterationTypes(type, cacheKey, noIterationTypes);
33450-
return undefined;
3345133449
}
3345233450
else {
3345333451
allIterationTypes = append(allIterationTypes, iterationTypes);

tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4.errors.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.

tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4.symbols

Lines changed: 0 additions & 11 deletions
This file was deleted.

tests/baselines/reference/destructuringArrayBindingPatternAndAssignment4.types

Lines changed: 0 additions & 12 deletions
This file was deleted.

tests/baselines/reference/generatorYieldContextualType.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ declare function f2<T, R, S>(gen: () => Generator<R, T, S> | AsyncGenerator<R, T
2525
f2<0, 0, 1>(async function* () {
2626
>f2<0, 0, 1>(async function* () { const a = yield 0; return 0;}) : void
2727
>f2 : <T, R, S>(gen: () => Generator<R, T, S> | AsyncGenerator<R, T, S>) => void
28-
>async function* () { const a = yield 0; return 0;} : () => AsyncGenerator<0, 0, 1 | undefined>
28+
>async function* () { const a = yield 0; return 0;} : () => AsyncGenerator<0, 0, 1>
2929

3030
const a = yield 0;
31-
>a : 1 | undefined
32-
>yield 0 : 1 | undefined
31+
>a : 1
32+
>yield 0 : 1
3333
>0 : 0
3434

3535
return 0;

tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment4.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)