-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
// @strict: true
function g(headerNames: any) {
let t = [{ hasLineBreak: false, cells: [] }];
const table = [{cells: headerNames }].concat(t);
}Expected behavior:
No error.
Actual behavior:
Error on concat(t): { hasLineBreak: boolean, cells: never[] } is not assignable to { cells: any }. hasLineBreak is missing.
Playground Link:
Related Issues:
MaxNanasy
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue