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

Address PR comments on return omission. #24546

Merged

Conversation

nate-chandler
Copy link
Contributor

Addresses two issues identified by Slava in the already merged return omission PR.

@nate-chandler
Copy link
Contributor Author

@swift-ci please smoke test

@nate-chandler
Copy link
Contributor Author

@swift-ci please smoke test

auto kind = AFD->getKind();
if (kind == DeclKind::Var || kind == DeclKind::Subscript ||
kind == DeclKind::Func ) {
if (isa<AccessorDecl>(AFD) || isa<FuncDecl>(AFD)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

AccessorDecl is a subclass of FuncDecl so only the RHS of the || is needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed!

Copy link
Contributor

@slavapestov slavapestov left a comment

Choose a reason for hiding this comment

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

Thank you! Only one minor nitpick if you allow me

@nate-chandler nate-chandler force-pushed the nate/omit-return-pr-fixes branch from 09754a7 to 1267f65 Compare May 7, 2019 21:20
@nate-chandler
Copy link
Contributor Author

@swift-ci please smoke test

@nate-chandler nate-chandler merged commit 5e7f06d into swiftlang:master May 7, 2019
@nate-chandler nate-chandler deleted the nate/omit-return-pr-fixes branch July 5, 2023 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants