Skip to content

Commit 71e52de

Browse files
author
Kanchalai Tanglertsampan
committed
finish remove unused yieldTypes
1 parent 6dc8072 commit 71e52de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15138,7 +15138,7 @@ namespace ts {
1513815138
}
1513915139
}
1514015140
// Return a union of the return expression types.
15141-
type = getUnionType(yieldTypes ? yieldTypes.concat(types) : types, /*subtypeReduction*/ true);
15141+
type = getUnionType(types, /*subtypeReduction*/ true);
1514215142

1514315143
if (functionFlags & FunctionFlags.Generator) { // AsyncGenerator function or Generator function
1514415144
type = functionFlags & FunctionFlags.Async

0 commit comments

Comments
 (0)