Skip to content

Make sure autoArrayType is unique, even if no lib is available#20344

Merged
mhegazy merged 2 commits into
masterfrom
Fix20333
Dec 2, 2017
Merged

Make sure autoArrayType is unique, even if no lib is available#20344
mhegazy merged 2 commits into
masterfrom
Fix20333

Conversation

@mhegazy
Copy link
Copy Markdown
Contributor

@mhegazy mhegazy commented Nov 29, 2017

make sure that the type we use for autoArrayType is unique even if no global Array type was provided

Fixes #20333

@mhegazy mhegazy requested a review from sandersn December 1, 2017 07:25
@mhegazy
Copy link
Copy Markdown
Contributor Author

mhegazy commented Dec 1, 2017

@sandersn can i get a CR for this one?

Comment thread src/compiler/checker.ts Outdated

autoArrayType = createArrayType(autoType);
if (autoArrayType === emptyObjectType) {
// autoArrayType is used as a marker, so even if global Array type is not defined, it needs ot be a unique type
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo at end of line: ot instead of to.

Copy link
Copy Markdown
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good except for the typo @j-oliveras pointed out.

@mhegazy mhegazy merged commit 59e5bbc into master Dec 2, 2017
@mhegazy mhegazy deleted the Fix20333 branch April 17, 2018 21:37
@microsoft microsoft locked and limited conversation to collaborators Jul 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants