-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Should leading ampersands (&) be allowed in intersection types? #17916
Comments
@yortus Why don't anyone try to fix the spec? Isn't specification of language the most important document? |
The spec hasn't been updated since January 2016, so it's likely that a bunch of stuff is missing or outdated. I'm not sure why this is; my guess would be time pressure on the team, and the fact that they don't directly take PRs for the spec. Perhaps a team member can chime in. |
See #17215 (comment). |
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed. |
TypeScript Version: 2.4.2 / playground (2.3.?)
Code
Expected behavior:
Emits error, since language spec said,
in the subsection 3.8.7
Actual behavior:
Doesn't emit error and uses it as
number & string
.The text was updated successfully, but these errors were encountered: