Skip to content

Return type in closure? #6865

Closed Answered by Wirone
flavio-paqt asked this question in Q&A
Mar 27, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

There's void_return fixer that you might check, but as the name suggests it will only handle void return type. I believe we don't have fixer that would infer return type from the function's body and would use it as return type in the signature. Feel free to create feature request, but please have in mind that core team not necessarily will work on it because of other ongoing works.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@flavio-paqt
Comment options

@Wirone
Comment options

Answer selected by flavio-paqt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #6864 on March 27, 2023 11:23.