- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.1k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue
Description
TypeScript Version: 3.6.3 / 3.7.0-dev.20191021
Search Terms: type check, no error, large object
Code
interface A {
  b: B[];
}
interface B {
  c: C;
}
interface C {
  d: D[];
}
interface D {
  e: E[];
}
interface E {
  f: F[];
}
interface F {
  g: G;
}
interface G {
  h: H[];
}
interface H {
  i: string;
}
const x: A = {
  b: [
    {
      c: {
        d: [
          {
            e: [
              {
                f: [
                  {
                    g: {
                      h: [
                        {
                          // intellisense still works, but type check fails here
                          // i: '',
                        },
                      ],
                    },
                  },
                ],
              },
            ],
          },
        ],
      },
    },
  ],
};Expected behavior:
Reporting error as property i is missing.
Actual behavior:
No error.
fatcerberus
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue