You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enum members aren't subtype reduced in unions #35867
👋 Hi, I'm the Repro bot. I can help narrow down and track compiler bugs across releases! This comment reflects the current state of the repro in the issue body running against the nightly TypeScript.
‼️ Exception: Error - Did not find a source file for /home/runner/work/TypeScript/TypeScript/index.ts
Error: Did not find a source file for /home/runner/work/TypeScript/TypeScript/index.ts
at Object.updateFile (/home/runner/work/_actions/microsoft/TypeScript-Twoslash-Repro-Action/master/dist/index.js:6876:15)
at _loop3 (/home/runner/work/_actions/microsoft/TypeScript-Twoslash-Repro-Action/master/dist/index.js:1738:9)
at twoslasher (/home/runner/work/_actions/microsoft/TypeScript-Twoslash-Repro-Action/master/dist/index.js:1744:17)
at /home/runner/work/_actions/microsoft/TypeScript-Twoslash-Repro-Action/master/dist/index.js:777:44
at runTwoslashRequests (/home/runner/work/_actions/microsoft/TypeScript-Twoslash-Repro-Action/master/dist/index.js:744:56)
at run (/home/runner/work/_actions/microsoft/TypeScript-Twoslash-Repro-Action/master/dist/index.js:2169:75)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
👋 Hi, I'm the Repro bot. I can help narrow down and track compiler bugs across releases! This comment reflects the current state of this repro running against the nightly TypeScript.
TypeError: Cannot read properties of undefined (reading 'getPositionOfLineAndCharacter')
at Object.getPositionOfLineAndCharacter (/home/runner/work/_actions/microsoft/TypeScript-Twoslash-Repro-Action/master/dist/ts/nightly/lib/typescript.js:10384:27)
at /home/runner/work/_actions/microsoft/TypeScript-Twoslash-Repro-Action/master/dist/index.js:1679:25
at Array.map (<anonymous>)
at _loop3 (/home/runner/work/_actions/microsoft/TypeScript-Twoslash-Repro-Action/master/dist/index.js:1677:40)
at twoslasher (/home/runner/work/_actions/microsoft/TypeScript-Twoslash-Repro-Action/master/dist/index.js:1744:17)
at /home/runner/work/_actions/microsoft/TypeScript-Twoslash-Repro-Action/master/dist/index.js:777:44
at runTwoslashRequests (/home/runner/work/_actions/microsoft/TypeScript-Twoslash-Repro-Action/master/dist/index.js:744:56)
at run (/home/runner/work/_actions/microsoft/TypeScript-Twoslash-Repro-Action/master/dist/index.js:2169:75)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Activity
jack-williams commentedon Dec 27, 2019
Related: #32621?
DanielRosenwasser commentedon Jul 16, 2020
Workbench Repro
DanielRosenwasser commentedon Apr 12, 2022
I think this is fixed now. Would we have any volunteers willing to add a test case to prevent regressions?
typescript-bot commentedon Apr 13, 2022
👋 Hi, I'm the Repro bot. I can help narrow down and track compiler bugs across releases! This comment reflects the current state of the repro in the issue body running against the nightly TypeScript.
Issue body code block by Daniel Rosenwasser (@DanielRosenwasser)
Historical Information
👍 Compiled
typescript-bot commentedon Apr 14, 2022
👋 Hi, I'm the Repro bot. I can help narrow down and track compiler bugs across releases! This comment reflects the current state of this repro running against the nightly TypeScript.
Comment by Daniel Rosenwasser (@DanielRosenwasser)
Historical Information
function f(x: E | undefined): EAdd case to capture enum subtype reduction (addresses microsoft#35867)
Add case to capture enum subtype reduction (addresses microsoft#35867)
Add case to capture enum subtype reduction (addresses microsoft#35867) (