[Proposal] Allow default
keyword to define empty implementation of void
-returning methods
#7656
Unanswered
vadimkantorov
asked this question in
Language Ideas
Replies: 1 comment 2 replies
-
But then here |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
E.g.
void Foo() {}
andint Foo() => default;
are both currently possible butvoid Foo() => default;
is currently not allowed. I propose to allow this syntax too, mainly for consistencyI'm not sure where to put this kind of suggestion. Please move it to issues or to another category if needed!
Beta Was this translation helpful? Give feedback.
All reactions