TypeScript Version: 3.5.1
Search Terms:
Code
interfaceExprData{mapper : ()=>unknown,blah : string,}interfaceExpr<DataTextendsExprData>{mapper : DataT["mapper"],blah : DataT["blah"],extra : number,}declarefunctionwhere(callback : ()=>Expr<{mapper : ()=>boolean,blah : string,}>) : void;declarefunctiongetInvalidWhere() : Expr<{mapper : ()=>(boolean|null),blah : string,}>;/*Type 'Expr<{ mapper: () => boolean | null; blah: string; }>' is not assignable to type 'Expr<{ mapper: () => boolean; blah: string; }>'. Type '{ mapper: () => boolean | null; blah: string; }' is not assignable to type '{ mapper: () => boolean; blah: string; }'. Types of property 'mapper' are incompatible. Type '() => boolean | null' is not assignable to type '() => boolean'. Type 'boolean | null' is not assignable to type 'boolean'. Type 'null' is not assignable to type 'boolean'.*/where(()=>getInvalidWhere())/* Expected: Same error as above, Actual: Type 'Expr<{ mapper: () => boolean | null; blah: string; }>' is not assignable to type 'Expr<{ mapper: () => boolean; blah: string; }>'.*/where(()=>getInvalidWhere())Expected behavior:
- Both errors should have the same error message, if they're in the same file.
- Both errors should have the same error message, if they're in different files.
Actual behavior:
- Both errors have different error messages in the same file.
- Both errors have different error messages in different files.
Playground Link:
Playground
Related Issues:
TypeScript Version: 3.5.1
Search Terms:
Code
Expected behavior:
Actual behavior:
Playground Link:
Playground
Related Issues: