Skip to content

Fix bug where array element is undefined #26433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
3 commits merged into from
Sep 17, 2018
Merged

Fix bug where array element is undefined #26433

3 commits merged into from
Sep 17, 2018

Conversation

ghost
Copy link

@ghost ghost commented Aug 14, 2018

Fixes #26153

This bug did not reproduce in a tests/cases test, only in a real test. @rbuckton Any idea what difference between the test runner and regular compiler may have caused this? The code for reproducing the issue is:

type Foo = [object, object?];
const bar: ReadonlyArray<Foo> = [{}, {}];

compiled with node ../../TypeScript/built/local/tsc.js a.ts --strictNullChecks

@RyanCavanaugh
Copy link
Member

@Andy-MS there's a failing fourslash test

@ghost ghost requested review from rbuckton and sandersn September 17, 2018 17:57
@ghost ghost merged commit bc709a8 into master Sep 17, 2018
@ghost ghost deleted the arity branch September 17, 2018 22:14
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant