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

Improve the definition of the void type. #757

Merged
merged 1 commit into from
Aug 6, 2019
Merged

Improve the definition of the void type. #757

merged 1 commit into from
Aug 6, 2019

Conversation

Ms2ger
Copy link
Member

@Ms2ger Ms2ger commented Jul 2, 2019

In particular, this acknowledges that Promise<void> exists.

This also ensures that the handling of void return types is defined fully.

Fixes #737.


Preview | Diff

In particular, this acknowledges that `Promise<void>` exists.

This also ensures that the handling of `void` return types is defined fully.

Fixes #737.
It can only be used as the [=return type=] of an [=operation=] or the parameter of a
[=promise type=].

The [=type name=] of the {{void}} type is "<code>Void</code>".
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice catch, I see it’s needed to assemble the "VoidPromise" type name.

@bzbarsky bzbarsky merged commit c490bc7 into master Aug 6, 2019
@Ms2ger Ms2ger deleted the void branch August 6, 2019 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Looking for some clarity on Promise<void>
3 participants