mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
finish remove unused yieldTypes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user