Skip to content

Unknown properties are assignable to Object in union#15257

Merged
sandersn merged 2 commits into
masterfrom
unknown-properties-are-assignable-to-Object-in-union
Apr 18, 2017
Merged

Unknown properties are assignable to Object in union#15257
sandersn merged 2 commits into
masterfrom
unknown-properties-are-assignable-to-Object-in-union

Conversation

@sandersn
Copy link
Copy Markdown
Member

For the last week or so they have been treated as excess properties when assigning to a union type containing Object, but not when assigning directly to Object type.

Fixes #15254

For the last week or so they have been treated as excess properties when
assigning to a union type containing Object, but not when assigning directly
to Object type.
@ghost
Copy link
Copy Markdown

ghost commented Apr 18, 2017

Maybe Object | string === Object before?

@sandersn
Copy link
Copy Markdown
Member Author

Oh, subtype reduction? Maybe.

@sandersn sandersn merged commit 2e43c86 into master Apr 18, 2017
@sandersn sandersn deleted the unknown-properties-are-assignable-to-Object-in-union branch April 18, 2017 22:21
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 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.

2 participants