Skip to content

Weak type errors for primitives - #16343

Merged
Nathan Shively-Sanders (sandersn) merged 4 commits into
masterfrom
weak-types-for-primitives
Jun 9, 2017
Merged

Weak type errors for primitives#16343
Nathan Shively-Sanders (sandersn) merged 4 commits into
masterfrom
weak-types-for-primitives

Conversation

@sandersn

@sandersn Nathan Shively-Sanders (sandersn) commented Jun 7, 2017

Copy link
Copy Markdown
Member

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.

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
Nathan Shively-Sanders (sandersn) deleted the weak-types-for-primitives branch June 9, 2017 16:03
@microsoft 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