# Bug Report ### π Search Terms generator function union contextual typing yield expression ### π Version & Regression Information 4.8.4 ### β― Playground Link [Playground link with relevant code](https://www.typescriptlang.org/play?#code/C4TwDgpgBAggxsAlgewHZQLxQBQEpMB8OA4hKhAE4CGwyFAPAM7AWKoDmANFM6x97zbsA2gF0iAHx4shuAFBy4aZlABGALlgIU6LADMArqm1oAVDnwBvBTah2oS1CriYoIRBAA2AEygByPzl7KAoIYAMKdAC5AF85IA)  ### π» Code ```ts type Action = () => (Generator<string, string, string[]> | string) const b: Action = function* () { // expect `string[]`, actual `never` const c = yield '' return '' } ``` ### π Actual behavior `never` ### π Expected behavior `string[]`