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
Expected behavior: No type error. TypeScript compiler version 3.2.2 gives no error.
Actual behavior:
Starting version 3.2.4 TypeScript compiler gives the following type error:
$ tsc --strict error.ts
error.ts:2:7 - error TS2322: Type 'undefined' is not assignable to type 'undefined extends A | undefined ? A | undefined : undefined'.
2 let a:undefined extends A | undefined ? A | undefined : undefined = undefined;
Playground Link: could not reproduce in TypeScript Playground.
Related Issues:
The text was updated successfully, but these errors were encountered:
👋 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.
TypeScript Version: 3.4.0-dev.201xxxxx
Search Terms: type inference regression
Code
Expected behavior: No type error. TypeScript compiler version 3.2.2 gives no error.
Actual behavior:
Starting version 3.2.4 TypeScript compiler gives the following type error:
Playground Link: could not reproduce in TypeScript Playground.
Related Issues:
The text was updated successfully, but these errors were encountered: