-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Address PR comments on return omission. #24546
Conversation
@swift-ci please smoke test |
4a486de
to
09754a7
Compare
@swift-ci please smoke test |
lib/Parse/ParseDecl.cpp
Outdated
auto kind = AFD->getKind(); | ||
if (kind == DeclKind::Var || kind == DeclKind::Subscript || | ||
kind == DeclKind::Func ) { | ||
if (isa<AccessorDecl>(AFD) || isa<FuncDecl>(AFD)) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
There was a problem hiding this 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
09754a7
to
1267f65
Compare
@swift-ci please smoke test |
Addresses two issues identified by Slava in the already merged return omission PR.