Skip to content
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

Weak type errors for primitives #16343

Merged
merged 4 commits into from
Jun 9, 2017
Merged

Weak type errors for primitives #16343

merged 4 commits into from
Jun 9, 2017

Conversation

sandersn
Copy link
Member

@sandersn sandersn commented Jun 7, 2017

Fixes #16333

Previously, weak type errors didn't occur with primitive sources because the apparent type of primitives all include toString. isKnownProperty reports that toString is known for all types because it falls back to globalObjectType when it can't find the property on the given type.

@sandersn sandersn changed the title Weak types for primitives Weak type errors for primitives Jun 7, 2017
It doesn't make sense to say that 'toString' is part of a weak type
since having 'toString' would mean that the type isn't actually weak.
@sandersn sandersn merged commit cae1286 into master Jun 9, 2017
@sandersn sandersn deleted the weak-types-for-primitives branch June 9, 2017 16:03
@sandersn sandersn mentioned this pull request Jul 6, 2017
@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.

3 participants