finish remove unused yieldTypes

This commit is contained in:
Kanchalai Tanglertsampan 2017-03-21 08:38:01 -07:00
parent 6dc8072bb9
commit 71e52dea92

View file

@ -15138,7 +15138,7 @@ namespace ts {
}
}
// Return a union of the return expression types.
type = getUnionType(yieldTypes ? yieldTypes.concat(types) : types, /*subtypeReduction*/ true);
type = getUnionType(types, /*subtypeReduction*/ true);
if (functionFlags & FunctionFlags.Generator) { // AsyncGenerator function or Generator function
type = functionFlags & FunctionFlags.Async